//****************************************************************************
//
//   Scanner Control SDK Test Program
//
//   Copyright PFU LIMITED 2009-2014
//
//****************************************************************************
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Text;
using System.Text.RegularExpressions;

namespace fiScanTest
{
    /// <summary>
    /// Summary description for FormScan.
    /// </summary>
    public class FormScan : System.Windows.Forms.Form
    {
        private System.Windows.Forms.Button ButtonScan;
        private System.Windows.Forms.Button ButtonExit;
        private System.Windows.Forms.Button ButtonReset;
        private System.Windows.Forms.TabControl tabControl1;
        private System.Windows.Forms.StatusBar statusBar1;
        private System.Windows.Forms.MainMenu mainMenu1;
        private System.Windows.Forms.MenuItem MenuItemFile;
        private System.Windows.Forms.MenuItem MenuItemExit;
        private System.Windows.Forms.MenuItem MenuItemScanner;
        private System.Windows.Forms.MenuItem MenuItemStartScan;
        private System.Windows.Forms.MenuItem MenuItemSeparator1;
        private System.Windows.Forms.MenuItem MenuItemSelectSource;
        private System.Windows.Forms.MenuItem MenuItemClearPage;
        private System.Windows.Forms.MenuItem MenuItemSeparator2;
        private System.Windows.Forms.MenuItem MenuItemOption;
        private System.Windows.Forms.MenuItem MenuItemShowSourceUI;
        private System.Windows.Forms.MenuItem MenuItemCloseSourceUI;
        internal System.Windows.Forms.MenuItem MenuItemSourceCurrentScan;
        private System.Windows.Forms.MenuItem MenuItemSilentMode;
        private System.Windows.Forms.MenuItem MenuItemReport;
        private System.Windows.Forms.MenuItem MenuItemReportOFF;
        private System.Windows.Forms.MenuItem MenuItemReportDisplay;
        private System.Windows.Forms.MenuItem MenuItemReportFile;
        private System.Windows.Forms.MenuItem MenuItemReportBoth;
        private System.Windows.Forms.MenuItem MenuItemSIPCTemplate;
        private System.Windows.Forms.MenuItem MenuItemSeparator3;
        private System.Windows.Forms.MenuItem MenuItemHelp;
        private System.Windows.Forms.MenuItem MenuItemVersion;
        private System.Windows.Forms.GroupBox groupBox1;
        private System.Windows.Forms.GroupBox groupBox2;
        private System.Windows.Forms.GroupBox groupBox3;
        private System.Windows.Forms.GroupBox groupBox4;
        private System.Windows.Forms.GroupBox groupBox5;
        private System.Windows.Forms.GroupBox groupBox7;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Label label7;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.Label label8;
        private System.Windows.Forms.Label label9;
        private System.Windows.Forms.Label label10;
        private System.Windows.Forms.Label label11;
        private System.Windows.Forms.Label label12;
        private System.Windows.Forms.Label label13;
        private System.Windows.Forms.Label label14;
        private System.Windows.Forms.Label label15;
        private System.Windows.Forms.Label label16;
        private System.Windows.Forms.Label label18;
        private System.Windows.Forms.Label label17;
        private System.Windows.Forms.Label label19;
        private System.Windows.Forms.Label label20;
        private System.Windows.Forms.Label label21;
        private System.Windows.Forms.Label label25;
        private System.Windows.Forms.Label label22;
        private System.Windows.Forms.Label label24;
        private System.Windows.Forms.Label label23;
        private System.Windows.Forms.Label label26;
        private System.Windows.Forms.Label label28;
        private System.Windows.Forms.Label label27;
        private System.Windows.Forms.Label label29;
        private System.Windows.Forms.Label label30;
        private System.Windows.Forms.Label label31;
        private System.Windows.Forms.Label label32;
        private System.Windows.Forms.Label label33;
        private System.Windows.Forms.ComboBox cboScanTo;
        private System.Windows.Forms.ComboBox cboFileType;
        private System.Windows.Forms.TextBox txtFileName;
        private System.Windows.Forms.ComboBox cboOverwrite;
        private System.Windows.Forms.TextBox txtFileCounter;
        private System.Windows.Forms.ComboBox cboCompType;
        private System.Windows.Forms.ComboBox cboJpegQuality;
        private System.Windows.Forms.ComboBox cboPixelType;
        private System.Windows.Forms.ComboBox cboResolution;
        private System.Windows.Forms.TextBox txtCustomResolution;
        private System.Windows.Forms.TextBox txtScanCount;
        private System.Windows.Forms.ComboBox cboPaperSupply;
        private System.Windows.Forms.CheckBox chkLongPage;
        private System.Windows.Forms.CheckBox chkUndefinedScanning;
        private System.Windows.Forms.ComboBox cboPaperSize;
        private System.Windows.Forms.ComboBox cboOrientation;
        private System.Windows.Forms.ComboBox cboBackgroundColor;
        private System.Windows.Forms.TextBox txtCustomPaperWidth;
        private System.Windows.Forms.TextBox txtCustomPaperLength;
        private System.Windows.Forms.TextBox txtRegionLeft;
        private System.Windows.Forms.TextBox txtRegionTop;
        private System.Windows.Forms.TextBox txtRegionWidth;
        private System.Windows.Forms.TextBox txtRegionLength;
        private System.Windows.Forms.TextBox txtBrightness;
        private System.Windows.Forms.Label label34;
        private System.Windows.Forms.Label label35;
        private System.Windows.Forms.Label label36;
        private System.Windows.Forms.TextBox txtContrast;
        private System.Windows.Forms.Label label37;
        private System.Windows.Forms.Label label38;
        private System.Windows.Forms.TextBox txtThreshold;
        private System.Windows.Forms.Label label39;
        private System.Windows.Forms.CheckBox chkReverse;
        private System.Windows.Forms.CheckBox chkMirroring;
        private System.Windows.Forms.Label label41;
        private System.Windows.Forms.ComboBox cboRotation;
        private System.Windows.Forms.Label label42;
        private System.Windows.Forms.ComboBox cboBackground;
        private System.Windows.Forms.Label label43;
        private System.Windows.Forms.ComboBox cboOutline;
        private System.Windows.Forms.Label label44;
        private System.Windows.Forms.ComboBox cboAutoSeparation;
        private System.Windows.Forms.Label label45;
        private System.Windows.Forms.ComboBox cboSEE;
        private System.Windows.Forms.Label label46;
        private System.Windows.Forms.ComboBox cboHalftone;
        private System.Windows.Forms.TextBox txtHalftoneFile;
        private System.Windows.Forms.Label label47;
        private System.Windows.Forms.ComboBox cboGamma;
        private System.Windows.Forms.TextBox txtGammaFile;
        private System.Windows.Forms.Label label48;
        private System.Windows.Forms.Label label49;
        private System.Windows.Forms.TextBox txtCustomGamma;
        private System.Windows.Forms.Label label50;
        private System.Windows.Forms.ComboBox cboThresholdCurve;
        private System.Windows.Forms.Label label51;
        private System.Windows.Forms.ComboBox cboNoiseRemoval;
        private System.Windows.Forms.CheckBox chkPreFiltering;
        private System.Windows.Forms.CheckBox chkSmoothing;
        private System.Windows.Forms.Label label63;
        private System.Windows.Forms.ComboBox cboJobControl;
        private System.Windows.Forms.Label label64;
        private System.Windows.Forms.ComboBox cboBinding;
        private System.Windows.Forms.Label label65;
        private System.Windows.Forms.ComboBox cboMultiFeed;
        private System.Windows.Forms.Label label66;
        private System.Windows.Forms.ComboBox cboFilter;
        private System.Windows.Forms.Label label67;
        private System.Windows.Forms.TextBox txtSkipWhitePage;
        private System.Windows.Forms.Label label68;
        private System.Windows.Forms.Label label69;
        private System.Windows.Forms.Label label70;
        private System.Windows.Forms.TextBox txtSkipBlackPage;
        private System.Windows.Forms.Label label71;
        private System.Windows.Forms.CheckBox chkAutoBorderDetection;
        private System.Windows.Forms.MenuItem MenuItemIndicator;
        private System.Windows.Forms.ComboBox cboUnit;
        private System.Windows.Forms.Label label72;
        private System.Windows.Forms.Label label73;
        private System.Windows.Forms.TextBox txtHighlight;
        private System.Windows.Forms.Label label74;
        private System.Windows.Forms.Label label75;
        private System.Windows.Forms.TextBox txtShadow;
        private System.Windows.Forms.Label label76;
        private System.Windows.Forms.Label label77;
        private System.Windows.Forms.ComboBox cboOverScan;
        private System.Windows.Forms.Label label52;
        private System.Windows.Forms.Label label53;
        private System.Windows.Forms.MenuItem MenuItemTWAINTemplate;
        private System.Windows.Forms.MenuItem menuItemSeparator4;
        private System.Windows.Forms.MenuItem menuItemFeederLoaded;
        private System.Windows.Forms.GroupBox groupBox8;
        private System.Windows.Forms.Label label78;
        private System.Windows.Forms.Label label79;
        private System.Windows.Forms.Label label80;
        private System.Windows.Forms.Label label81;
        private System.Windows.Forms.CheckBox chkBarcodeDetection;
        private System.Windows.Forms.ComboBox cboBarcodeDirection;
        private System.Windows.Forms.TextBox txtBarcodeRegionLeft;
        private System.Windows.Forms.Label label82;
        private System.Windows.Forms.Label label83;
        private System.Windows.Forms.TextBox txtBarcodeRegionWidth;
        private System.Windows.Forms.Label label84;
        private System.Windows.Forms.Label label85;
        private System.Windows.Forms.Label label86;
        private System.Windows.Forms.Label label87;
        private System.Windows.Forms.TextBox txtBarcodeRegionLength;
        private System.Windows.Forms.TextBox txtBarcodeRegionTop;
        private System.Windows.Forms.GroupBox groupBox9;
        private System.Windows.Forms.Label label88;
        private System.Windows.Forms.Label label89;
        private System.Windows.Forms.CheckBox chkEAN8;
        private System.Windows.Forms.Label label90;
        private System.Windows.Forms.Label label91;
        private System.Windows.Forms.Label label92;
        private System.Windows.Forms.Label label93;
        private System.Windows.Forms.Label label94;
        private System.Windows.Forms.Label label95;
        private System.Windows.Forms.Label label96;
        private System.Windows.Forms.Label label97;
        private System.Windows.Forms.CheckBox chkCode128;
        private System.Windows.Forms.CheckBox chkEAN13;
        private System.Windows.Forms.CheckBox chkCode3of9;
        private System.Windows.Forms.CheckBox chkCodabar;
        private System.Windows.Forms.CheckBox chkITF;
        private System.Windows.Forms.CheckBox chkPDF417;
        private System.Windows.Forms.CheckBox chkQRCode;
        private System.Windows.Forms.CheckBox chkUPCA;
        private System.Windows.Forms.GroupBox groupBox10;
        private System.Windows.Forms.ComboBox cboPatchCodeDirection;
        private System.Windows.Forms.CheckBox chkPatchCodeDetection;
        private System.Windows.Forms.Label label98;
        private System.Windows.Forms.Label label99;
        private System.Windows.Forms.GroupBox groupBox11;
        private System.Windows.Forms.Label label100;
        private System.Windows.Forms.Label label101;
        private System.Windows.Forms.CheckBox chkPatch1;
        private System.Windows.Forms.Label label102;
        private System.Windows.Forms.CheckBox chkPatch4;
        private System.Windows.Forms.Label label103;
        private System.Windows.Forms.Label label104;
        private System.Windows.Forms.CheckBox chkPatchT;
        private System.Windows.Forms.CheckBox chkPatch2;
        private System.Windows.Forms.CheckBox chkPatch6;
        private System.Windows.Forms.Label label105;
        private System.Windows.Forms.Label label106;
        private System.Windows.Forms.CheckBox chkPatch3;
        private System.Windows.Forms.GroupBox groupBox12;
        private System.Windows.Forms.GroupBox groupBox13;
        private System.Windows.Forms.Label label107;
        private System.Windows.Forms.TextBox txtEdgeFillerTop;
        private System.Windows.Forms.Label label108;
        private System.Windows.Forms.Label label109;
        private System.Windows.Forms.Label label110;
        private System.Windows.Forms.Label label111;
        private System.Windows.Forms.TextBox txtEdgeFillerLeft;
        private System.Windows.Forms.Label label112;
        private System.Windows.Forms.Label label113;
        private System.Windows.Forms.Label label114;
        private System.Windows.Forms.Label label115;
        private System.Windows.Forms.TextBox txtEdgeFillerRight;
        private System.Windows.Forms.TextBox txtEdgeFillerBottom;
        private System.Windows.Forms.ComboBox cboEdgeFiller;
        private System.Windows.Forms.Label label116;
        private System.Windows.Forms.ComboBox cboJobControlMode;
        private System.Windows.Forms.Label label118;
        private System.Windows.Forms.Label label119;
        private System.Windows.Forms.Label label120;
        private System.Windows.Forms.TextBox txtBlankPageSkip;
        private System.Windows.Forms.CheckBox chkAutoBright;
        private System.Windows.Forms.Label label121;
        private System.Windows.Forms.Button ButtonCheckADF;
        private System.Windows.Forms.Label label122;
        private System.Windows.Forms.Label label123;
        private System.Windows.Forms.CheckBox chkAutomaticSenseMedium;
        private System.Windows.Forms.Label label125;
        private System.Windows.Forms.TextBox txtDTCSensitivity;
        private System.Windows.Forms.Label label126;
        private System.Windows.Forms.Label label127;
        private System.Windows.Forms.Label label128;
        private System.Windows.Forms.TextBox txtBackgroundThreshold;
        private System.Windows.Forms.Label label129;
        private System.Windows.Forms.Label label130;
        private System.Windows.Forms.TextBox txtCharacterThickness;
        private System.Windows.Forms.Label label131;
        private System.Windows.Forms.Label label132;
        private System.Windows.Forms.TextBox txtSDTCSensitivity;
        private System.Windows.Forms.Label label133;
        private System.Windows.Forms.Label label134;
        private System.Windows.Forms.Label label135;
        private System.Windows.Forms.TextBox txtADTCThreshold;
        private System.Windows.Forms.Label label136;
        private System.Windows.Forms.ComboBox cboSharpness;
        private System.Windows.Forms.Label label137;
        private System.Windows.Forms.Label label138;
        private System.Windows.Forms.Label label139;
        private System.Windows.Forms.TextBox txtFadingCompensation;
        private System.Windows.Forms.Label label140;
        private System.Windows.Forms.CheckBox chksRGB;
        private System.Windows.Forms.Label label141;
        private System.Windows.Forms.ComboBox cboPunchHoleRemoval;
        private System.Windows.Forms.Label label142;
        private System.Windows.Forms.TextBox txtNoiseRejection;
        private Hashtable barcodeHashTable;
        private Hashtable barcodeRotationHashTable;
        private Hashtable patchCodeHashTable;
        private Hashtable aiqcResultHashTable;
        private Hashtable blankPageResultHashTable;
        public delegate void DetectBarcodeEventHandler(long readCount, long barcodeType, String barcodeText);
        public delegate void DetectPatchCodeEventHandler(long readCount, long patchCodeType);
        private ArrayList resultList;
        private System.Windows.Forms.Label label143;
        private System.Windows.Forms.CheckBox chkEdgeRepair;
        private System.Windows.Forms.Label label40;
        private System.Windows.Forms.ComboBox cboScanMode;
        private System.Windows.Forms.TabPage Endorser;
        private System.Windows.Forms.GroupBox groupBox6;
        private System.Windows.Forms.ComboBox cboEndorserFont;
        private System.Windows.Forms.Label label117;
        private System.Windows.Forms.ComboBox cboEndorserCountDirection;
        private System.Windows.Forms.Label label62;
        private System.Windows.Forms.ComboBox cboEndorserCountStep;
        private System.Windows.Forms.Label label61;
        private System.Windows.Forms.ComboBox cboEndorserDirection;
        private System.Windows.Forms.Label label60;
        private System.Windows.Forms.TextBox txtEndorserOffset;
        private System.Windows.Forms.Label label59;
        private System.Windows.Forms.Label label58;
        private System.Windows.Forms.TextBox txtEndorserString;
        private System.Windows.Forms.Label label57;
        private System.Windows.Forms.Label label56;
        private System.Windows.Forms.TextBox txtEndorserCounter;
        private System.Windows.Forms.Label label55;
        private System.Windows.Forms.CheckBox chkEndorser;
        private System.Windows.Forms.Label label54;
        private System.Windows.Forms.Label label144;
        private System.Windows.Forms.GroupBox groupBox14;
        private System.Windows.Forms.Label label146;
        private System.Windows.Forms.Label label147;
        private System.Windows.Forms.Label label149;
        private System.Windows.Forms.Label label150;
        private System.Windows.Forms.Label label151;
        private System.Windows.Forms.Label label152;
        private System.Windows.Forms.Label label153;
        private System.Windows.Forms.Label label154;
        private System.Windows.Forms.Label label145;
        private System.Windows.Forms.Label label148;
        private System.Windows.Forms.CheckBox chkSynchronizationDigitalEndorser;
        private System.Windows.Forms.ComboBox cboDigitalEndorserCountDirection;
        private System.Windows.Forms.ComboBox cboDigitalEndorserCountStep;
        private System.Windows.Forms.TextBox txtDigitalEndorserXOffset;
        private System.Windows.Forms.TextBox txtDigitalEndorserString;
        private System.Windows.Forms.TextBox txtDigitalEndorserCounter;
        private System.Windows.Forms.CheckBox chkDigitalEndorser;
        private System.Windows.Forms.TextBox txtDigitalEndorserYOffset;
        private System.Windows.Forms.Label label155;
        private System.Windows.Forms.TextBox txtFilterSaturationSensitivity;
        private System.Windows.Forms.Label label156;
        private System.Windows.Forms.Label label157;
        private System.Windows.Forms.CheckBox chkVerticalLineReduction;
        private System.Windows.Forms.Label label158;
        private System.Windows.Forms.Label label159;
        private System.Windows.Forms.TextBox txtBarcodeMaxSearchPriorities;
        private System.Windows.Forms.TabPage Standard;
        private System.Windows.Forms.TabPage Image;
        private System.Windows.Forms.TabPage Extention;
        private System.Windows.Forms.TabPage Barcode;
        private System.Windows.Forms.TabPage PatchCode;
        private System.Windows.Forms.TabPage EdgeFiller;
        private System.Windows.Forms.ComboBox cboBackgroundSmoothing;
        private System.Windows.Forms.Label label124;
        private System.Windows.Forms.Label label160;
        private System.Windows.Forms.TextBox txtBackgroundSmoothness;
        private System.Windows.Forms.ComboBox cboPatternRemoval;
        private System.Windows.Forms.Label label161;
        private System.Windows.Forms.Label label162;
        private System.Windows.Forms.Label label163;
        private System.Windows.Forms.ComboBox cboCropPriority;
        private System.Windows.Forms.ComboBox cboDeskew;
        private System.Windows.Forms.CheckBox chkAIQCNotice;
        private System.Windows.Forms.Label label164;
        private System.Windows.Forms.TextBox txtCropMarginSize;
        private System.Windows.Forms.Label label166;
        private System.Windows.Forms.Label label167;
        private System.Windows.Forms.TextBox txtMultiFeedModeChangeSize;
        private System.Windows.Forms.Label label168;
        private CheckBox chkDataMatrix;
        private Label label165;
        private ComboBox cboBlankPageNotice;
        private Label label170;
        private CheckBox chkHwCompression;
        private Label label171;
        public AxFiScnLib.AxFiScn axFiScn1;
        private CheckBox chkScanContinue;
        private Label label169;
        private IContainer components;

        public FormScan()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            barcodeHashTable = new Hashtable();
            barcodeHashTable.Add(ModuleScan.BA_EAN8, ModuleScan.BA_STR_EAN8);
            barcodeHashTable.Add(ModuleScan.BA_EAN13, ModuleScan.BA_STR_EAN13);
            barcodeHashTable.Add(ModuleScan.BA_CODE3OF9, ModuleScan.BA_STR_CODE3OF9);
            barcodeHashTable.Add(ModuleScan.BA_CODE128, ModuleScan.BA_STR_CODE128);
            barcodeHashTable.Add(ModuleScan.BA_ITF, ModuleScan.BA_STR_ITF);
            barcodeHashTable.Add(ModuleScan.BA_UPCA, ModuleScan.BA_STR_UPCA);
            barcodeHashTable.Add(ModuleScan.BA_CODABAR, ModuleScan.BA_STR_CODABAR);
            barcodeHashTable.Add(ModuleScan.BA_PDF417, ModuleScan.BA_STR_PDF417);
            barcodeHashTable.Add(ModuleScan.BA_QRCODE, ModuleScan.BA_STR_QRCODE);
            barcodeHashTable.Add(ModuleScan.BA_DATAMATRIX, ModuleScan.BA_STR_DATAMATRIX);

            barcodeRotationHashTable = new Hashtable();
            barcodeRotationHashTable.Add(ModuleScan.BA_RT_0, ModuleScan.BA_RT_STR_0);
            barcodeRotationHashTable.Add(ModuleScan.BA_RT_90, ModuleScan.BA_RT_STR_90);
            barcodeRotationHashTable.Add(ModuleScan.BA_RT_180, ModuleScan.BA_RT_STR_180);
            barcodeRotationHashTable.Add(ModuleScan.BA_RT_270, ModuleScan.BA_RT_STR_270);
            barcodeRotationHashTable.Add(ModuleScan.BA_RT_X, ModuleScan.BA_RT_STR_X);

            patchCodeHashTable = new Hashtable();
            patchCodeHashTable.Add(ModuleScan.PA_PATCH1, ModuleScan.PA_STR_PATCH1);
            patchCodeHashTable.Add(ModuleScan.PA_PATCH2, ModuleScan.PA_STR_PATCH2);
            patchCodeHashTable.Add(ModuleScan.PA_PATCH3, ModuleScan.PA_STR_PATCH3);
            patchCodeHashTable.Add(ModuleScan.PA_PATCH4, ModuleScan.PA_STR_PATCH4);
            patchCodeHashTable.Add(ModuleScan.PA_PATCH6, ModuleScan.PA_STR_PATCH6);
            patchCodeHashTable.Add(ModuleScan.PA_PATCHT, ModuleScan.PA_STR_PATCHT);
 
            aiqcResultHashTable = new Hashtable();
            aiqcResultHashTable.Add(true, ModuleScan.AR_BADIMAGE);
            aiqcResultHashTable.Add(false, ModuleScan.AR_NOERROR);
          
            blankPageResultHashTable = new Hashtable();
            blankPageResultHashTable.Add(ModuleScan.BR_DETECTION, ModuleScan.BR_STR_DETECTION);
            blankPageResultHashTable.Add(ModuleScan.BR_NONDETECTION, ModuleScan.BR_STR_NONDETECTION);
          
           resultList = new ArrayList();

        }

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose( bool disposing )
        {
            if( disposing )
            {
                if (components != null) 
                {
                    components.Dispose();
                }
            }
            base.Dispose( disposing );
        }

        #region Windows Form Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormScan));
            this.ButtonScan = new System.Windows.Forms.Button();
            this.ButtonExit = new System.Windows.Forms.Button();
            this.ButtonReset = new System.Windows.Forms.Button();
            this.tabControl1 = new System.Windows.Forms.TabControl();
            this.Standard = new System.Windows.Forms.TabPage();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.label160 = new System.Windows.Forms.Label();
            this.txtBackgroundSmoothness = new System.Windows.Forms.TextBox();
            this.cboBackgroundSmoothing = new System.Windows.Forms.ComboBox();
            this.chkAutomaticSenseMedium = new System.Windows.Forms.CheckBox();
            this.label122 = new System.Windows.Forms.Label();
            this.label72 = new System.Windows.Forms.Label();
            this.cboUnit = new System.Windows.Forms.ComboBox();
            this.txtRegionLength = new System.Windows.Forms.TextBox();
            this.txtRegionWidth = new System.Windows.Forms.TextBox();
            this.txtRegionTop = new System.Windows.Forms.TextBox();
            this.txtRegionLeft = new System.Windows.Forms.TextBox();
            this.txtCustomPaperLength = new System.Windows.Forms.TextBox();
            this.txtCustomPaperWidth = new System.Windows.Forms.TextBox();
            this.cboBackgroundColor = new System.Windows.Forms.ComboBox();
            this.cboOrientation = new System.Windows.Forms.ComboBox();
            this.cboPaperSize = new System.Windows.Forms.ComboBox();
            this.chkUndefinedScanning = new System.Windows.Forms.CheckBox();
            this.chkLongPage = new System.Windows.Forms.CheckBox();
            this.cboPaperSupply = new System.Windows.Forms.ComboBox();
            this.txtScanCount = new System.Windows.Forms.TextBox();
            this.label32 = new System.Windows.Forms.Label();
            this.label31 = new System.Windows.Forms.Label();
            this.label30 = new System.Windows.Forms.Label();
            this.label29 = new System.Windows.Forms.Label();
            this.label27 = new System.Windows.Forms.Label();
            this.label28 = new System.Windows.Forms.Label();
            this.label26 = new System.Windows.Forms.Label();
            this.label23 = new System.Windows.Forms.Label();
            this.label24 = new System.Windows.Forms.Label();
            this.label22 = new System.Windows.Forms.Label();
            this.label25 = new System.Windows.Forms.Label();
            this.label21 = new System.Windows.Forms.Label();
            this.label20 = new System.Windows.Forms.Label();
            this.label19 = new System.Windows.Forms.Label();
            this.label17 = new System.Windows.Forms.Label();
            this.label18 = new System.Windows.Forms.Label();
            this.label16 = new System.Windows.Forms.Label();
            this.label15 = new System.Windows.Forms.Label();
            this.label14 = new System.Windows.Forms.Label();
            this.label13 = new System.Windows.Forms.Label();
            this.label123 = new System.Windows.Forms.Label();
            this.label124 = new System.Windows.Forms.Label();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.chkAutoBright = new System.Windows.Forms.CheckBox();
            this.label121 = new System.Windows.Forms.Label();
            this.txtCustomResolution = new System.Windows.Forms.TextBox();
            this.cboResolution = new System.Windows.Forms.ComboBox();
            this.cboPixelType = new System.Windows.Forms.ComboBox();
            this.label12 = new System.Windows.Forms.Label();
            this.label11 = new System.Windows.Forms.Label();
            this.label10 = new System.Windows.Forms.Label();
            this.label9 = new System.Windows.Forms.Label();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.label169 = new System.Windows.Forms.Label();
            this.chkScanContinue = new System.Windows.Forms.CheckBox();
            this.cboScanMode = new System.Windows.Forms.ComboBox();
            this.label40 = new System.Windows.Forms.Label();
            this.cboJpegQuality = new System.Windows.Forms.ComboBox();
            this.cboCompType = new System.Windows.Forms.ComboBox();
            this.txtFileCounter = new System.Windows.Forms.TextBox();
            this.cboOverwrite = new System.Windows.Forms.ComboBox();
            this.txtFileName = new System.Windows.Forms.TextBox();
            this.cboFileType = new System.Windows.Forms.ComboBox();
            this.cboScanTo = new System.Windows.Forms.ComboBox();
            this.label8 = new System.Windows.Forms.Label();
            this.label6 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.label7 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.Image = new System.Windows.Forms.TabPage();
            this.groupBox5 = new System.Windows.Forms.GroupBox();
            this.chkSmoothing = new System.Windows.Forms.CheckBox();
            this.label52 = new System.Windows.Forms.Label();
            this.chkPreFiltering = new System.Windows.Forms.CheckBox();
            this.label53 = new System.Windows.Forms.Label();
            this.cboNoiseRemoval = new System.Windows.Forms.ComboBox();
            this.label51 = new System.Windows.Forms.Label();
            this.cboThresholdCurve = new System.Windows.Forms.ComboBox();
            this.label50 = new System.Windows.Forms.Label();
            this.groupBox4 = new System.Windows.Forms.GroupBox();
            this.cboPatternRemoval = new System.Windows.Forms.ComboBox();
            this.chkVerticalLineReduction = new System.Windows.Forms.CheckBox();
            this.label142 = new System.Windows.Forms.Label();
            this.cboPunchHoleRemoval = new System.Windows.Forms.ComboBox();
            this.label141 = new System.Windows.Forms.Label();
            this.chksRGB = new System.Windows.Forms.CheckBox();
            this.label140 = new System.Windows.Forms.Label();
            this.label138 = new System.Windows.Forms.Label();
            this.cboSharpness = new System.Windows.Forms.ComboBox();
            this.label137 = new System.Windows.Forms.Label();
            this.label135 = new System.Windows.Forms.Label();
            this.txtADTCThreshold = new System.Windows.Forms.TextBox();
            this.label136 = new System.Windows.Forms.Label();
            this.label133 = new System.Windows.Forms.Label();
            this.txtNoiseRejection = new System.Windows.Forms.TextBox();
            this.label134 = new System.Windows.Forms.Label();
            this.label132 = new System.Windows.Forms.Label();
            this.txtSDTCSensitivity = new System.Windows.Forms.TextBox();
            this.label131 = new System.Windows.Forms.Label();
            this.label130 = new System.Windows.Forms.Label();
            this.txtCharacterThickness = new System.Windows.Forms.TextBox();
            this.label129 = new System.Windows.Forms.Label();
            this.label126 = new System.Windows.Forms.Label();
            this.txtDTCSensitivity = new System.Windows.Forms.TextBox();
            this.label125 = new System.Windows.Forms.Label();
            this.label76 = new System.Windows.Forms.Label();
            this.txtShadow = new System.Windows.Forms.TextBox();
            this.label75 = new System.Windows.Forms.Label();
            this.label74 = new System.Windows.Forms.Label();
            this.txtHighlight = new System.Windows.Forms.TextBox();
            this.label73 = new System.Windows.Forms.Label();
            this.txtCustomGamma = new System.Windows.Forms.TextBox();
            this.label49 = new System.Windows.Forms.Label();
            this.label48 = new System.Windows.Forms.Label();
            this.txtGammaFile = new System.Windows.Forms.TextBox();
            this.cboGamma = new System.Windows.Forms.ComboBox();
            this.label47 = new System.Windows.Forms.Label();
            this.txtHalftoneFile = new System.Windows.Forms.TextBox();
            this.cboHalftone = new System.Windows.Forms.ComboBox();
            this.label46 = new System.Windows.Forms.Label();
            this.cboSEE = new System.Windows.Forms.ComboBox();
            this.label45 = new System.Windows.Forms.Label();
            this.cboAutoSeparation = new System.Windows.Forms.ComboBox();
            this.label44 = new System.Windows.Forms.Label();
            this.cboOutline = new System.Windows.Forms.ComboBox();
            this.label43 = new System.Windows.Forms.Label();
            this.cboBackground = new System.Windows.Forms.ComboBox();
            this.label42 = new System.Windows.Forms.Label();
            this.cboRotation = new System.Windows.Forms.ComboBox();
            this.label41 = new System.Windows.Forms.Label();
            this.chkMirroring = new System.Windows.Forms.CheckBox();
            this.chkReverse = new System.Windows.Forms.CheckBox();
            this.label39 = new System.Windows.Forms.Label();
            this.txtThreshold = new System.Windows.Forms.TextBox();
            this.label38 = new System.Windows.Forms.Label();
            this.label37 = new System.Windows.Forms.Label();
            this.txtContrast = new System.Windows.Forms.TextBox();
            this.label36 = new System.Windows.Forms.Label();
            this.label35 = new System.Windows.Forms.Label();
            this.label34 = new System.Windows.Forms.Label();
            this.txtBrightness = new System.Windows.Forms.TextBox();
            this.label33 = new System.Windows.Forms.Label();
            this.label127 = new System.Windows.Forms.Label();
            this.label128 = new System.Windows.Forms.Label();
            this.txtBackgroundThreshold = new System.Windows.Forms.TextBox();
            this.txtFadingCompensation = new System.Windows.Forms.TextBox();
            this.label139 = new System.Windows.Forms.Label();
            this.label143 = new System.Windows.Forms.Label();
            this.label157 = new System.Windows.Forms.Label();
            this.Extention = new System.Windows.Forms.TabPage();
            this.groupBox7 = new System.Windows.Forms.GroupBox();
            this.chkHwCompression = new System.Windows.Forms.CheckBox();
            this.label171 = new System.Windows.Forms.Label();
            this.cboBlankPageNotice = new System.Windows.Forms.ComboBox();
            this.label170 = new System.Windows.Forms.Label();
            this.txtMultiFeedModeChangeSize = new System.Windows.Forms.TextBox();
            this.label167 = new System.Windows.Forms.Label();
            this.txtCropMarginSize = new System.Windows.Forms.TextBox();
            this.label164 = new System.Windows.Forms.Label();
            this.cboCropPriority = new System.Windows.Forms.ComboBox();
            this.chkAIQCNotice = new System.Windows.Forms.CheckBox();
            this.txtFilterSaturationSensitivity = new System.Windows.Forms.TextBox();
            this.label156 = new System.Windows.Forms.Label();
            this.label155 = new System.Windows.Forms.Label();
            this.cboOverScan = new System.Windows.Forms.ComboBox();
            this.label77 = new System.Windows.Forms.Label();
            this.chkAutoBorderDetection = new System.Windows.Forms.CheckBox();
            this.label71 = new System.Windows.Forms.Label();
            this.txtSkipBlackPage = new System.Windows.Forms.TextBox();
            this.label70 = new System.Windows.Forms.Label();
            this.label69 = new System.Windows.Forms.Label();
            this.label68 = new System.Windows.Forms.Label();
            this.txtSkipWhitePage = new System.Windows.Forms.TextBox();
            this.label67 = new System.Windows.Forms.Label();
            this.cboFilter = new System.Windows.Forms.ComboBox();
            this.label66 = new System.Windows.Forms.Label();
            this.cboMultiFeed = new System.Windows.Forms.ComboBox();
            this.label65 = new System.Windows.Forms.Label();
            this.cboBinding = new System.Windows.Forms.ComboBox();
            this.label64 = new System.Windows.Forms.Label();
            this.cboJobControl = new System.Windows.Forms.ComboBox();
            this.label63 = new System.Windows.Forms.Label();
            this.cboJobControlMode = new System.Windows.Forms.ComboBox();
            this.label118 = new System.Windows.Forms.Label();
            this.txtBlankPageSkip = new System.Windows.Forms.TextBox();
            this.label119 = new System.Windows.Forms.Label();
            this.label120 = new System.Windows.Forms.Label();
            this.label161 = new System.Windows.Forms.Label();
            this.label162 = new System.Windows.Forms.Label();
            this.label163 = new System.Windows.Forms.Label();
            this.cboDeskew = new System.Windows.Forms.ComboBox();
            this.label166 = new System.Windows.Forms.Label();
            this.label168 = new System.Windows.Forms.Label();
            this.Endorser = new System.Windows.Forms.TabPage();
            this.groupBox6 = new System.Windows.Forms.GroupBox();
            this.cboEndorserFont = new System.Windows.Forms.ComboBox();
            this.label117 = new System.Windows.Forms.Label();
            this.cboEndorserCountDirection = new System.Windows.Forms.ComboBox();
            this.label62 = new System.Windows.Forms.Label();
            this.cboEndorserCountStep = new System.Windows.Forms.ComboBox();
            this.label61 = new System.Windows.Forms.Label();
            this.cboEndorserDirection = new System.Windows.Forms.ComboBox();
            this.label60 = new System.Windows.Forms.Label();
            this.txtEndorserOffset = new System.Windows.Forms.TextBox();
            this.label59 = new System.Windows.Forms.Label();
            this.label58 = new System.Windows.Forms.Label();
            this.txtEndorserString = new System.Windows.Forms.TextBox();
            this.label57 = new System.Windows.Forms.Label();
            this.label56 = new System.Windows.Forms.Label();
            this.txtEndorserCounter = new System.Windows.Forms.TextBox();
            this.label55 = new System.Windows.Forms.Label();
            this.chkEndorser = new System.Windows.Forms.CheckBox();
            this.label54 = new System.Windows.Forms.Label();
            this.chkSynchronizationDigitalEndorser = new System.Windows.Forms.CheckBox();
            this.label144 = new System.Windows.Forms.Label();
            this.groupBox14 = new System.Windows.Forms.GroupBox();
            this.cboDigitalEndorserCountDirection = new System.Windows.Forms.ComboBox();
            this.label146 = new System.Windows.Forms.Label();
            this.cboDigitalEndorserCountStep = new System.Windows.Forms.ComboBox();
            this.label147 = new System.Windows.Forms.Label();
            this.txtDigitalEndorserXOffset = new System.Windows.Forms.TextBox();
            this.label149 = new System.Windows.Forms.Label();
            this.label150 = new System.Windows.Forms.Label();
            this.txtDigitalEndorserString = new System.Windows.Forms.TextBox();
            this.label151 = new System.Windows.Forms.Label();
            this.label152 = new System.Windows.Forms.Label();
            this.txtDigitalEndorserCounter = new System.Windows.Forms.TextBox();
            this.label153 = new System.Windows.Forms.Label();
            this.chkDigitalEndorser = new System.Windows.Forms.CheckBox();
            this.label154 = new System.Windows.Forms.Label();
            this.label145 = new System.Windows.Forms.Label();
            this.label148 = new System.Windows.Forms.Label();
            this.txtDigitalEndorserYOffset = new System.Windows.Forms.TextBox();
            this.Barcode = new System.Windows.Forms.TabPage();
            this.groupBox8 = new System.Windows.Forms.GroupBox();
            this.label159 = new System.Windows.Forms.Label();
            this.txtBarcodeMaxSearchPriorities = new System.Windows.Forms.TextBox();
            this.label158 = new System.Windows.Forms.Label();
            this.groupBox9 = new System.Windows.Forms.GroupBox();
            this.chkDataMatrix = new System.Windows.Forms.CheckBox();
            this.label165 = new System.Windows.Forms.Label();
            this.label88 = new System.Windows.Forms.Label();
            this.label89 = new System.Windows.Forms.Label();
            this.chkEAN8 = new System.Windows.Forms.CheckBox();
            this.label90 = new System.Windows.Forms.Label();
            this.chkCode128 = new System.Windows.Forms.CheckBox();
            this.label91 = new System.Windows.Forms.Label();
            this.chkCodabar = new System.Windows.Forms.CheckBox();
            this.label92 = new System.Windows.Forms.Label();
            this.label93 = new System.Windows.Forms.Label();
            this.label94 = new System.Windows.Forms.Label();
            this.chkITF = new System.Windows.Forms.CheckBox();
            this.chkPDF417 = new System.Windows.Forms.CheckBox();
            this.chkEAN13 = new System.Windows.Forms.CheckBox();
            this.chkQRCode = new System.Windows.Forms.CheckBox();
            this.chkUPCA = new System.Windows.Forms.CheckBox();
            this.label95 = new System.Windows.Forms.Label();
            this.label96 = new System.Windows.Forms.Label();
            this.label97 = new System.Windows.Forms.Label();
            this.chkCode3of9 = new System.Windows.Forms.CheckBox();
            this.label82 = new System.Windows.Forms.Label();
            this.txtBarcodeRegionLeft = new System.Windows.Forms.TextBox();
            this.cboBarcodeDirection = new System.Windows.Forms.ComboBox();
            this.chkBarcodeDetection = new System.Windows.Forms.CheckBox();
            this.label81 = new System.Windows.Forms.Label();
            this.label80 = new System.Windows.Forms.Label();
            this.label79 = new System.Windows.Forms.Label();
            this.label78 = new System.Windows.Forms.Label();
            this.label83 = new System.Windows.Forms.Label();
            this.txtBarcodeRegionWidth = new System.Windows.Forms.TextBox();
            this.label84 = new System.Windows.Forms.Label();
            this.label85 = new System.Windows.Forms.Label();
            this.label86 = new System.Windows.Forms.Label();
            this.label87 = new System.Windows.Forms.Label();
            this.txtBarcodeRegionLength = new System.Windows.Forms.TextBox();
            this.txtBarcodeRegionTop = new System.Windows.Forms.TextBox();
            this.PatchCode = new System.Windows.Forms.TabPage();
            this.groupBox10 = new System.Windows.Forms.GroupBox();
            this.groupBox11 = new System.Windows.Forms.GroupBox();
            this.label100 = new System.Windows.Forms.Label();
            this.label101 = new System.Windows.Forms.Label();
            this.chkPatch1 = new System.Windows.Forms.CheckBox();
            this.label102 = new System.Windows.Forms.Label();
            this.chkPatch4 = new System.Windows.Forms.CheckBox();
            this.label103 = new System.Windows.Forms.Label();
            this.label104 = new System.Windows.Forms.Label();
            this.chkPatchT = new System.Windows.Forms.CheckBox();
            this.chkPatch2 = new System.Windows.Forms.CheckBox();
            this.chkPatch6 = new System.Windows.Forms.CheckBox();
            this.label105 = new System.Windows.Forms.Label();
            this.label106 = new System.Windows.Forms.Label();
            this.chkPatch3 = new System.Windows.Forms.CheckBox();
            this.cboPatchCodeDirection = new System.Windows.Forms.ComboBox();
            this.chkPatchCodeDetection = new System.Windows.Forms.CheckBox();
            this.label98 = new System.Windows.Forms.Label();
            this.label99 = new System.Windows.Forms.Label();
            this.EdgeFiller = new System.Windows.Forms.TabPage();
            this.groupBox12 = new System.Windows.Forms.GroupBox();
            this.chkEdgeRepair = new System.Windows.Forms.CheckBox();
            this.groupBox13 = new System.Windows.Forms.GroupBox();
            this.label107 = new System.Windows.Forms.Label();
            this.txtEdgeFillerTop = new System.Windows.Forms.TextBox();
            this.cboEdgeFiller = new System.Windows.Forms.ComboBox();
            this.label108 = new System.Windows.Forms.Label();
            this.label109 = new System.Windows.Forms.Label();
            this.label110 = new System.Windows.Forms.Label();
            this.label111 = new System.Windows.Forms.Label();
            this.txtEdgeFillerLeft = new System.Windows.Forms.TextBox();
            this.label112 = new System.Windows.Forms.Label();
            this.label113 = new System.Windows.Forms.Label();
            this.label114 = new System.Windows.Forms.Label();
            this.label115 = new System.Windows.Forms.Label();
            this.txtEdgeFillerRight = new System.Windows.Forms.TextBox();
            this.txtEdgeFillerBottom = new System.Windows.Forms.TextBox();
            this.label116 = new System.Windows.Forms.Label();
            this.statusBar1 = new System.Windows.Forms.StatusBar();
            this.mainMenu1 = new System.Windows.Forms.MainMenu(this.components);
            this.MenuItemFile = new System.Windows.Forms.MenuItem();
            this.MenuItemExit = new System.Windows.Forms.MenuItem();
            this.MenuItemScanner = new System.Windows.Forms.MenuItem();
            this.MenuItemStartScan = new System.Windows.Forms.MenuItem();
            this.MenuItemSeparator1 = new System.Windows.Forms.MenuItem();
            this.MenuItemSelectSource = new System.Windows.Forms.MenuItem();
            this.MenuItemSeparator2 = new System.Windows.Forms.MenuItem();
            this.MenuItemClearPage = new System.Windows.Forms.MenuItem();
            this.menuItemSeparator4 = new System.Windows.Forms.MenuItem();
            this.menuItemFeederLoaded = new System.Windows.Forms.MenuItem();
            this.MenuItemOption = new System.Windows.Forms.MenuItem();
            this.MenuItemShowSourceUI = new System.Windows.Forms.MenuItem();
            this.MenuItemCloseSourceUI = new System.Windows.Forms.MenuItem();
            this.MenuItemSourceCurrentScan = new System.Windows.Forms.MenuItem();
            this.MenuItemSilentMode = new System.Windows.Forms.MenuItem();
            this.MenuItemIndicator = new System.Windows.Forms.MenuItem();
            this.MenuItemReport = new System.Windows.Forms.MenuItem();
            this.MenuItemReportOFF = new System.Windows.Forms.MenuItem();
            this.MenuItemReportDisplay = new System.Windows.Forms.MenuItem();
            this.MenuItemReportFile = new System.Windows.Forms.MenuItem();
            this.MenuItemReportBoth = new System.Windows.Forms.MenuItem();
            this.MenuItemSeparator3 = new System.Windows.Forms.MenuItem();
            this.MenuItemSIPCTemplate = new System.Windows.Forms.MenuItem();
            this.MenuItemTWAINTemplate = new System.Windows.Forms.MenuItem();
            this.MenuItemHelp = new System.Windows.Forms.MenuItem();
            this.MenuItemVersion = new System.Windows.Forms.MenuItem();
            this.ButtonCheckADF = new System.Windows.Forms.Button();
            this.axFiScn1 = new AxFiScnLib.AxFiScn();
            this.tabControl1.SuspendLayout();
            this.Standard.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.Image.SuspendLayout();
            this.groupBox5.SuspendLayout();
            this.groupBox4.SuspendLayout();
            this.Extention.SuspendLayout();
            this.groupBox7.SuspendLayout();
            this.Endorser.SuspendLayout();
            this.groupBox6.SuspendLayout();
            this.groupBox14.SuspendLayout();
            this.Barcode.SuspendLayout();
            this.groupBox8.SuspendLayout();
            this.groupBox9.SuspendLayout();
            this.PatchCode.SuspendLayout();
            this.groupBox10.SuspendLayout();
            this.groupBox11.SuspendLayout();
            this.EdgeFiller.SuspendLayout();
            this.groupBox12.SuspendLayout();
            this.groupBox13.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.axFiScn1)).BeginInit();
            this.SuspendLayout();
            // 
            // ButtonScan
            // 
            this.ButtonScan.Location = new System.Drawing.Point(758, 35);
            this.ButtonScan.Name = "ButtonScan";
            this.ButtonScan.Size = new System.Drawing.Size(72, 24);
            this.ButtonScan.TabIndex = 0;
            this.ButtonScan.Text = "Scan";
            this.ButtonScan.Click += new System.EventHandler(this.ButtonScan_Click);
            // 
            // ButtonExit
            // 
            this.ButtonExit.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.ButtonExit.Location = new System.Drawing.Point(758, 69);
            this.ButtonExit.Name = "ButtonExit";
            this.ButtonExit.Size = new System.Drawing.Size(72, 24);
            this.ButtonExit.TabIndex = 1;
            this.ButtonExit.Text = "Exit";
            this.ButtonExit.Click += new System.EventHandler(this.ButtonExit_Click);
            // 
            // ButtonReset
            // 
            this.ButtonReset.Location = new System.Drawing.Point(758, 128);
            this.ButtonReset.Name = "ButtonReset";
            this.ButtonReset.Size = new System.Drawing.Size(72, 24);
            this.ButtonReset.TabIndex = 2;
            this.ButtonReset.Text = "Reset";
            this.ButtonReset.Click += new System.EventHandler(this.ButtonReset_Click);
            // 
            // tabControl1
            // 
            this.tabControl1.Controls.Add(this.Standard);
            this.tabControl1.Controls.Add(this.Image);
            this.tabControl1.Controls.Add(this.Extention);
            this.tabControl1.Controls.Add(this.Endorser);
            this.tabControl1.Controls.Add(this.Barcode);
            this.tabControl1.Controls.Add(this.PatchCode);
            this.tabControl1.Controls.Add(this.EdgeFiller);
            this.tabControl1.Location = new System.Drawing.Point(8, 16);
            this.tabControl1.Name = "tabControl1";
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size = new System.Drawing.Size(736, 479);
            this.tabControl1.TabIndex = 5;
            // 
            // Standard
            // 
            this.Standard.Controls.Add(this.groupBox3);
            this.Standard.Controls.Add(this.groupBox2);
            this.Standard.Controls.Add(this.groupBox1);
            this.Standard.Location = new System.Drawing.Point(4, 22);
            this.Standard.Name = "Standard";
            this.Standard.Size = new System.Drawing.Size(728, 453);
            this.Standard.TabIndex = 0;
            this.Standard.Text = "Standard";
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add(this.label160);
            this.groupBox3.Controls.Add(this.txtBackgroundSmoothness);
            this.groupBox3.Controls.Add(this.cboBackgroundSmoothing);
            this.groupBox3.Controls.Add(this.chkAutomaticSenseMedium);
            this.groupBox3.Controls.Add(this.label122);
            this.groupBox3.Controls.Add(this.label72);
            this.groupBox3.Controls.Add(this.cboUnit);
            this.groupBox3.Controls.Add(this.txtRegionLength);
            this.groupBox3.Controls.Add(this.txtRegionWidth);
            this.groupBox3.Controls.Add(this.txtRegionTop);
            this.groupBox3.Controls.Add(this.txtRegionLeft);
            this.groupBox3.Controls.Add(this.txtCustomPaperLength);
            this.groupBox3.Controls.Add(this.txtCustomPaperWidth);
            this.groupBox3.Controls.Add(this.cboBackgroundColor);
            this.groupBox3.Controls.Add(this.cboOrientation);
            this.groupBox3.Controls.Add(this.cboPaperSize);
            this.groupBox3.Controls.Add(this.chkUndefinedScanning);
            this.groupBox3.Controls.Add(this.chkLongPage);
            this.groupBox3.Controls.Add(this.cboPaperSupply);
            this.groupBox3.Controls.Add(this.txtScanCount);
            this.groupBox3.Controls.Add(this.label32);
            this.groupBox3.Controls.Add(this.label31);
            this.groupBox3.Controls.Add(this.label30);
            this.groupBox3.Controls.Add(this.label29);
            this.groupBox3.Controls.Add(this.label27);
            this.groupBox3.Controls.Add(this.label28);
            this.groupBox3.Controls.Add(this.label26);
            this.groupBox3.Controls.Add(this.label23);
            this.groupBox3.Controls.Add(this.label24);
            this.groupBox3.Controls.Add(this.label22);
            this.groupBox3.Controls.Add(this.label25);
            this.groupBox3.Controls.Add(this.label21);
            this.groupBox3.Controls.Add(this.label20);
            this.groupBox3.Controls.Add(this.label19);
            this.groupBox3.Controls.Add(this.label17);
            this.groupBox3.Controls.Add(this.label18);
            this.groupBox3.Controls.Add(this.label16);
            this.groupBox3.Controls.Add(this.label15);
            this.groupBox3.Controls.Add(this.label14);
            this.groupBox3.Controls.Add(this.label13);
            this.groupBox3.Controls.Add(this.label123);
            this.groupBox3.Controls.Add(this.label124);
            this.groupBox3.Location = new System.Drawing.Point(8, 236);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(711, 176);
            this.groupBox3.TabIndex = 2;
            this.groupBox3.TabStop = false;
            // 
            // label160
            // 
            this.label160.Location = new System.Drawing.Point(624, 128);
            this.label160.Name = "label160";
            this.label160.Size = new System.Drawing.Size(43, 16);
            this.label160.TabIndex = 35;
            this.label160.Text = "(0-10)";
            // 
            // txtBackgroundSmoothness
            // 
            this.txtBackgroundSmoothness.Location = new System.Drawing.Point(586, 125);
            this.txtBackgroundSmoothness.MaxLength = 2;
            this.txtBackgroundSmoothness.Name = "txtBackgroundSmoothness";
            this.txtBackgroundSmoothness.Size = new System.Drawing.Size(36, 19);
            this.txtBackgroundSmoothness.TabIndex = 34;
            this.txtBackgroundSmoothness.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtBackgroundSmoothness.TextChanged += new System.EventHandler(this.txtBackgroundSmoothness_TextChanged);
            // 
            // cboBackgroundSmoothing
            // 
            this.cboBackgroundSmoothing.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboBackgroundSmoothing.Items.AddRange(new object[] {
            "None",
            "Automatic",
            "White"});
            this.cboBackgroundSmoothing.Location = new System.Drawing.Point(586, 102);
            this.cboBackgroundSmoothing.MaxDropDownItems = 3;
            this.cboBackgroundSmoothing.Name = "cboBackgroundSmoothing";
            this.cboBackgroundSmoothing.Size = new System.Drawing.Size(86, 20);
            this.cboBackgroundSmoothing.TabIndex = 26;
            // 
            // chkAutomaticSenseMedium
            // 
            this.chkAutomaticSenseMedium.Location = new System.Drawing.Point(586, 83);
            this.chkAutomaticSenseMedium.Name = "chkAutomaticSenseMedium";
            this.chkAutomaticSenseMedium.Size = new System.Drawing.Size(17, 15);
            this.chkAutomaticSenseMedium.TabIndex = 18;
            // 
            // label122
            // 
            this.label122.Location = new System.Drawing.Point(457, 84);
            this.label122.Name = "label122";
            this.label122.Size = new System.Drawing.Size(130, 16);
            this.label122.TabIndex = 17;
            this.label122.Text = "AutomaticSenseMedium";
            // 
            // label72
            // 
            this.label72.Location = new System.Drawing.Point(457, 13);
            this.label72.Name = "label72";
            this.label72.Size = new System.Drawing.Size(64, 14);
            this.label72.TabIndex = 3;
            this.label72.Text = "Unit";
            // 
            // cboUnit
            // 
            this.cboUnit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboUnit.Items.AddRange(new object[] {
            "Inches",
            "Centimeters",
            "Pixels"});
            this.cboUnit.Location = new System.Drawing.Point(586, 11);
            this.cboUnit.Name = "cboUnit";
            this.cboUnit.Size = new System.Drawing.Size(120, 20);
            this.cboUnit.TabIndex = 4;
            this.cboUnit.SelectedIndexChanged += new System.EventHandler(this.cboUnit_SelectedIndexChanged);
            // 
            // txtRegionLength
            // 
            this.txtRegionLength.Location = new System.Drawing.Point(372, 146);
            this.txtRegionLength.MaxLength = 8;
            this.txtRegionLength.Name = "txtRegionLength";
            this.txtRegionLength.Size = new System.Drawing.Size(45, 19);
            this.txtRegionLength.TabIndex = 40;
            this.txtRegionLength.Text = "0";
            this.txtRegionLength.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtRegionLength.TextChanged += new System.EventHandler(this.txtRegionLength_TextChanged);
            // 
            // txtRegionWidth
            // 
            this.txtRegionWidth.Location = new System.Drawing.Point(113, 147);
            this.txtRegionWidth.MaxLength = 8;
            this.txtRegionWidth.Name = "txtRegionWidth";
            this.txtRegionWidth.Size = new System.Drawing.Size(45, 19);
            this.txtRegionWidth.TabIndex = 37;
            this.txtRegionWidth.Text = "0";
            this.txtRegionWidth.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtRegionWidth.TextChanged += new System.EventHandler(this.txtRegionWidth_TextChanged);
            // 
            // txtRegionTop
            // 
            this.txtRegionTop.Location = new System.Drawing.Point(372, 125);
            this.txtRegionTop.MaxLength = 8;
            this.txtRegionTop.Name = "txtRegionTop";
            this.txtRegionTop.Size = new System.Drawing.Size(45, 19);
            this.txtRegionTop.TabIndex = 31;
            this.txtRegionTop.Text = "0";
            this.txtRegionTop.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtRegionTop.TextChanged += new System.EventHandler(this.txtRegionTop_TextChanged);
            // 
            // txtRegionLeft
            // 
            this.txtRegionLeft.Location = new System.Drawing.Point(113, 126);
            this.txtRegionLeft.MaxLength = 8;
            this.txtRegionLeft.Name = "txtRegionLeft";
            this.txtRegionLeft.Size = new System.Drawing.Size(45, 19);
            this.txtRegionLeft.TabIndex = 28;
            this.txtRegionLeft.Text = "0";
            this.txtRegionLeft.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtRegionLeft.TextChanged += new System.EventHandler(this.txtRegionLeft_TextChanged);
            // 
            // txtCustomPaperLength
            // 
            this.txtCustomPaperLength.Location = new System.Drawing.Point(372, 103);
            this.txtCustomPaperLength.MaxLength = 8;
            this.txtCustomPaperLength.Name = "txtCustomPaperLength";
            this.txtCustomPaperLength.Size = new System.Drawing.Size(45, 19);
            this.txtCustomPaperLength.TabIndex = 23;
            this.txtCustomPaperLength.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtCustomPaperLength.TextChanged += new System.EventHandler(this.txtCustomPaperLength_TextChanged);
            // 
            // txtCustomPaperWidth
            // 
            this.txtCustomPaperWidth.Location = new System.Drawing.Point(113, 103);
            this.txtCustomPaperWidth.MaxLength = 8;
            this.txtCustomPaperWidth.Name = "txtCustomPaperWidth";
            this.txtCustomPaperWidth.Size = new System.Drawing.Size(45, 19);
            this.txtCustomPaperWidth.TabIndex = 20;
            this.txtCustomPaperWidth.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtCustomPaperWidth.TextChanged += new System.EventHandler(this.txtCustomPaperWidth_TextChanged);
            // 
            // cboBackgroundColor
            // 
            this.cboBackgroundColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboBackgroundColor.Items.AddRange(new object[] {
            "OFF",
            "ON"});
            this.cboBackgroundColor.Location = new System.Drawing.Point(372, 80);
            this.cboBackgroundColor.Name = "cboBackgroundColor";
            this.cboBackgroundColor.Size = new System.Drawing.Size(64, 20);
            this.cboBackgroundColor.TabIndex = 16;
            // 
            // cboOrientation
            // 
            this.cboOrientation.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboOrientation.Items.AddRange(new object[] {
            "Portrait",
            "Landscape"});
            this.cboOrientation.Location = new System.Drawing.Point(113, 79);
            this.cboOrientation.Name = "cboOrientation";
            this.cboOrientation.Size = new System.Drawing.Size(105, 20);
            this.cboOrientation.TabIndex = 14;
            this.cboOrientation.SelectedIndexChanged += new System.EventHandler(this.cboOrientation_SelectedIndexChanged);
            // 
            // cboPaperSize
            // 
            this.cboPaperSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboPaperSize.Items.AddRange(new object[] {
            "A3(297x420mm)",
            "A4(210x297mm)",
            "A5(148x210mm)",
            "A6(105x148mm)",
            "B4(JIS)(257x364mm)",
            "B5(JIS)(182x257mm)",
            "B6(JIS)(128x182mm)",
            "Letter(8.5x11inch)",
            "Legal(8.5x14inch)",
            "Executive(7.25x10.5inch)",
            "Double Letter(11x17inch)",
            "PostCard(100x149mm)",
            "Photo(89x127mm)",
            "Card(55x91mm)",
            "Custom",
            "C4(229x324mm)",
            "C5(162x229mm)",
            "C6(114x162mm)",
            "B4(ISO)(250x353mm)",
            "B5(ISO)(176x250mm)",
            "B6(ISO)(125x176mm)"});
            this.cboPaperSize.Location = new System.Drawing.Point(113, 57);
            this.cboPaperSize.MaxDropDownItems = 21;
            this.cboPaperSize.Name = "cboPaperSize";
            this.cboPaperSize.Size = new System.Drawing.Size(194, 20);
            this.cboPaperSize.TabIndex = 8;
            this.cboPaperSize.SelectedIndexChanged += new System.EventHandler(this.cboPaperSize_SelectedIndexChanged);
            // 
            // chkUndefinedScanning
            // 
            this.chkUndefinedScanning.Location = new System.Drawing.Point(422, 60);
            this.chkUndefinedScanning.Name = "chkUndefinedScanning";
            this.chkUndefinedScanning.Size = new System.Drawing.Size(17, 15);
            this.chkUndefinedScanning.TabIndex = 10;
            // 
            // chkLongPage
            // 
            this.chkLongPage.Location = new System.Drawing.Point(586, 60);
            this.chkLongPage.Name = "chkLongPage";
            this.chkLongPage.Size = new System.Drawing.Size(17, 15);
            this.chkLongPage.TabIndex = 12;
            // 
            // cboPaperSupply
            // 
            this.cboPaperSupply.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboPaperSupply.Items.AddRange(new object[] {
            "Flatbed",
            "ADF",
            "ADF(Duplex)",
            "ADF(BackSide)",
            "ADF(CarrierSheet Spread A3)",
            "ADF(CarrierSheet Spread DL)",
            "ADF(CarrierSheet Spread B4)",
            "ADF(CarrierSheet Clipping)",
            "ADF(CarrierSheet Spread A3)",
            "ADF(CarrierSheet Spread DL)",
            "ADF(CarrierSheet Spread B4)",
            "ADF(CarrierSheet Spread Auto)",
            "ADF(CarrierSheet Clipping All)",
            "ADF(CarrierSheet Clipping A4)",
            "ADF(CarrierSheet Clipping A5)",
            "ADF(CarrierSheet Clipping A6)",
            "ADF(CarrierSheet Clipping POST)",
            "ADF(CarrierSheet Clipping B5)",
            "ADF(CarrierSheet Clipping B6)",
            "ADF(CarrierSheet Clipping LT)",
            "ADF(CarrierSheet Clipping CARD_T)",
            "ADF(CarrierSheet Clipping CARD_Y)",
            "ADF(CarrierSheet Clipping PHOTO_ET)",
            "ADF(CarrierSheet Clipping PHOTO_EY)",
            "ADF(CarrierSheet Clipping PHOTO_LT)",
            "ADF(CarrierSheet Clipping PHOTO_LY)",
            "ADF(CarrierSheet Clipping PHOTO_LLT)",
            "ADF(CarrierSheet Clipping PHOTO_LLY)",
            "ADF(CarrierSheet Clipping Auto)",
            "ADF(CarrierSheet Clipping Custom)",
            "ADF(CarrierSheet Clipping Duplex All)",
            "ADF(CarrierSheet Clipping Duplex A4)",
            "ADF(CarrierSheet Clipping Duplex A5)",
            "ADF(CarrierSheet Clipping Duplex A6)",
            "ADF(CarrierSheet Clipping Duplex POST)",
            "ADF(CarrierSheet Clipping Duplex B5)",
            "ADF(CarrierSheet Clipping Duplex B6)",
            "ADF(CarrierSheet Clipping Duplex LT)",
            "ADF(CarrierSheet Clipping Duplex CARD_T)",
            "ADF(CarrierSheet Clipping Duplex CARD_Y)",
            "ADF(CarrierSheet Clipping Duplex PHOTO_ET)",
            "ADF(CarrierSheet Clipping Duplex PHOTO_EY)",
            "ADF(CarrierSheet Clipping Duplex PHOTO_LT)",
            "ADF(CarrierSheet Clipping Duplex PHOTO_LY)",
            "ADF(CarrierSheet Clipping Duplex PHOTO_LLT)",
            "ADF(CarrierSheet Clipping Duplex PHOTO_LLY)",
            "ADF(CarrierSheet Clipping Duplex Auto)",
            "ADF(CarrierSheet Clipping Duplex Custom)"});
            this.cboPaperSupply.Location = new System.Drawing.Point(113, 34);
            this.cboPaperSupply.MaxDropDownItems = 50;
            this.cboPaperSupply.Name = "cboPaperSupply";
            this.cboPaperSupply.Size = new System.Drawing.Size(300, 20);
            this.cboPaperSupply.TabIndex = 6;
            this.cboPaperSupply.SelectedIndexChanged += new System.EventHandler(this.cboPaperSupply_SelectedIndexChanged);
            // 
            // txtScanCount
            // 
            this.txtScanCount.Location = new System.Drawing.Point(113, 11);
            this.txtScanCount.MaxLength = 5;
            this.txtScanCount.Name = "txtScanCount";
            this.txtScanCount.Size = new System.Drawing.Size(45, 19);
            this.txtScanCount.TabIndex = 1;
            this.txtScanCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtScanCount.TextChanged += new System.EventHandler(this.txtScanCount_TextChanged);
            // 
            // label32
            // 
            this.label32.Location = new System.Drawing.Point(8, 149);
            this.label32.Name = "label32";
            this.label32.Size = new System.Drawing.Size(106, 16);
            this.label32.TabIndex = 36;
            this.label32.Text = "RegionWidth";
            // 
            // label31
            // 
            this.label31.Location = new System.Drawing.Point(163, 150);
            this.label31.Name = "label31";
            this.label31.Size = new System.Drawing.Size(36, 16);
            this.label31.TabIndex = 38;
            this.label31.Text = "inch";
            // 
            // label30
            // 
            this.label30.Location = new System.Drawing.Point(262, 148);
            this.label30.Name = "label30";
            this.label30.Size = new System.Drawing.Size(106, 16);
            this.label30.TabIndex = 39;
            this.label30.Text = "RegionLength";
            // 
            // label29
            // 
            this.label29.Location = new System.Drawing.Point(422, 149);
            this.label29.Name = "label29";
            this.label29.Size = new System.Drawing.Size(36, 16);
            this.label29.TabIndex = 41;
            this.label29.Text = "inch";
            // 
            // label27
            // 
            this.label27.Location = new System.Drawing.Point(422, 128);
            this.label27.Name = "label27";
            this.label27.Size = new System.Drawing.Size(36, 16);
            this.label27.TabIndex = 32;
            this.label27.Text = "inch";
            // 
            // label28
            // 
            this.label28.Location = new System.Drawing.Point(262, 127);
            this.label28.Name = "label28";
            this.label28.Size = new System.Drawing.Size(106, 16);
            this.label28.TabIndex = 30;
            this.label28.Text = "RegionTop";
            // 
            // label26
            // 
            this.label26.Location = new System.Drawing.Point(163, 129);
            this.label26.Name = "label26";
            this.label26.Size = new System.Drawing.Size(36, 16);
            this.label26.TabIndex = 29;
            this.label26.Text = "inch";
            // 
            // label23
            // 
            this.label23.Location = new System.Drawing.Point(422, 106);
            this.label23.Name = "label23";
            this.label23.Size = new System.Drawing.Size(36, 16);
            this.label23.TabIndex = 24;
            this.label23.Text = "inch";
            // 
            // label24
            // 
            this.label24.Location = new System.Drawing.Point(262, 106);
            this.label24.Name = "label24";
            this.label24.Size = new System.Drawing.Size(112, 16);
            this.label24.TabIndex = 22;
            this.label24.Text = "CustomPaperLength";
            // 
            // label22
            // 
            this.label22.Location = new System.Drawing.Point(163, 106);
            this.label22.Name = "label22";
            this.label22.Size = new System.Drawing.Size(36, 16);
            this.label22.TabIndex = 21;
            this.label22.Text = "inch";
            // 
            // label25
            // 
            this.label25.Location = new System.Drawing.Point(8, 128);
            this.label25.Name = "label25";
            this.label25.Size = new System.Drawing.Size(106, 16);
            this.label25.TabIndex = 27;
            this.label25.Text = "RegionLeft";
            // 
            // label21
            // 
            this.label21.Location = new System.Drawing.Point(8, 106);
            this.label21.Name = "label21";
            this.label21.Size = new System.Drawing.Size(106, 16);
            this.label21.TabIndex = 19;
            this.label21.Text = "CustomPaperWidth";
            // 
            // label20
            // 
            this.label20.Location = new System.Drawing.Point(262, 84);
            this.label20.Name = "label20";
            this.label20.Size = new System.Drawing.Size(97, 16);
            this.label20.TabIndex = 15;
            this.label20.Text = "BackgroundColor";
            // 
            // label19
            // 
            this.label19.Location = new System.Drawing.Point(8, 83);
            this.label19.Name = "label19";
            this.label19.Size = new System.Drawing.Size(85, 16);
            this.label19.TabIndex = 13;
            this.label19.Text = "Orientation";
            // 
            // label17
            // 
            this.label17.Location = new System.Drawing.Point(312, 60);
            this.label17.Name = "label17";
            this.label17.Size = new System.Drawing.Size(105, 16);
            this.label17.TabIndex = 9;
            this.label17.Text = "UndefinedScanning";
            // 
            // label18
            // 
            this.label18.Location = new System.Drawing.Point(8, 60);
            this.label18.Name = "label18";
            this.label18.Size = new System.Drawing.Size(85, 16);
            this.label18.TabIndex = 7;
            this.label18.Text = "PaperSize";
            // 
            // label16
            // 
            this.label16.Location = new System.Drawing.Point(457, 61);
            this.label16.Name = "label16";
            this.label16.Size = new System.Drawing.Size(60, 16);
            this.label16.TabIndex = 11;
            this.label16.Text = "LongPage";
            // 
            // label15
            // 
            this.label15.Location = new System.Drawing.Point(8, 36);
            this.label15.Name = "label15";
            this.label15.Size = new System.Drawing.Size(85, 16);
            this.label15.TabIndex = 5;
            this.label15.Text = "PaperSupply";
            // 
            // label14
            // 
            this.label14.Location = new System.Drawing.Point(162, 15);
            this.label14.Name = "label14";
            this.label14.Size = new System.Drawing.Size(76, 16);
            this.label14.TabIndex = 2;
            this.label14.Text = "(-1, 1-32767)";
            // 
            // label13
            // 
            this.label13.Location = new System.Drawing.Point(8, 13);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(85, 16);
            this.label13.TabIndex = 0;
            this.label13.Text = "ScanCount";
            // 
            // label123
            // 
            this.label123.Location = new System.Drawing.Point(457, 106);
            this.label123.Name = "label123";
            this.label123.Size = new System.Drawing.Size(126, 16);
            this.label123.TabIndex = 25;
            this.label123.Text = "BackgroundSmoothing";
            // 
            // label124
            // 
            this.label124.Location = new System.Drawing.Point(457, 129);
            this.label124.Name = "label124";
            this.label124.Size = new System.Drawing.Size(133, 16);
            this.label124.TabIndex = 33;
            this.label124.Text = "BackgroundSmoothness";
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.chkAutoBright);
            this.groupBox2.Controls.Add(this.label121);
            this.groupBox2.Controls.Add(this.txtCustomResolution);
            this.groupBox2.Controls.Add(this.cboResolution);
            this.groupBox2.Controls.Add(this.cboPixelType);
            this.groupBox2.Controls.Add(this.label12);
            this.groupBox2.Controls.Add(this.label11);
            this.groupBox2.Controls.Add(this.label10);
            this.groupBox2.Controls.Add(this.label9);
            this.groupBox2.Location = new System.Drawing.Point(8, 168);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(711, 67);
            this.groupBox2.TabIndex = 1;
            this.groupBox2.TabStop = false;
            // 
            // chkAutoBright
            // 
            this.chkAutoBright.Location = new System.Drawing.Point(422, 16);
            this.chkAutoBright.Name = "chkAutoBright";
            this.chkAutoBright.Size = new System.Drawing.Size(17, 15);
            this.chkAutoBright.TabIndex = 3;
            // 
            // label121
            // 
            this.label121.Location = new System.Drawing.Point(311, 16);
            this.label121.Name = "label121";
            this.label121.Size = new System.Drawing.Size(105, 16);
            this.label121.TabIndex = 2;
            this.label121.Text = "AutoBright";
            // 
            // txtCustomResolution
            // 
            this.txtCustomResolution.Location = new System.Drawing.Point(422, 35);
            this.txtCustomResolution.MaxLength = 4;
            this.txtCustomResolution.Name = "txtCustomResolution";
            this.txtCustomResolution.Size = new System.Drawing.Size(45, 19);
            this.txtCustomResolution.TabIndex = 7;
            this.txtCustomResolution.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtCustomResolution.TextChanged += new System.EventHandler(this.txtCustomResolution_TextChanged);
            // 
            // cboResolution
            // 
            this.cboResolution.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboResolution.Items.AddRange(new object[] {
            "200dpi",
            "240dpi",
            "300dpi",
            "400dpi",
            "500dpi",
            "600dpi",
            "700dpi",
            "800dpi",
            "1200dpi",
            "Custom"});
            this.cboResolution.Location = new System.Drawing.Point(113, 37);
            this.cboResolution.MaxDropDownItems = 10;
            this.cboResolution.Name = "cboResolution";
            this.cboResolution.Size = new System.Drawing.Size(105, 20);
            this.cboResolution.TabIndex = 5;
            this.cboResolution.SelectedIndexChanged += new System.EventHandler(this.cboResolution_SelectedIndexChanged);
            // 
            // cboPixelType
            // 
            this.cboPixelType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboPixelType.Items.AddRange(new object[] {
            "Black&White",
            "Grayscale",
            "RGB",
            "Automatic"});
            this.cboPixelType.Location = new System.Drawing.Point(113, 13);
            this.cboPixelType.Name = "cboPixelType";
            this.cboPixelType.Size = new System.Drawing.Size(194, 20);
            this.cboPixelType.TabIndex = 1;
            this.cboPixelType.SelectedIndexChanged += new System.EventHandler(this.cboPixelType_SelectedIndexChanged);
            // 
            // label12
            // 
            this.label12.Location = new System.Drawing.Point(472, 39);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(76, 16);
            this.label12.TabIndex = 8;
            this.label12.Text = "(50-600dpi)";
            // 
            // label11
            // 
            this.label11.Location = new System.Drawing.Point(312, 39);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(110, 16);
            this.label11.TabIndex = 6;
            this.label11.Text = "CustomResolution";
            // 
            // label10
            // 
            this.label10.Location = new System.Drawing.Point(8, 40);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(85, 16);
            this.label10.TabIndex = 0;
            this.label10.Text = "Resolution";
            // 
            // label9
            // 
            this.label9.Location = new System.Drawing.Point(8, 17);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(85, 16);
            this.label9.TabIndex = 0;
            this.label9.Text = "PixelType";
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.label169);
            this.groupBox1.Controls.Add(this.chkScanContinue);
            this.groupBox1.Controls.Add(this.cboScanMode);
            this.groupBox1.Controls.Add(this.label40);
            this.groupBox1.Controls.Add(this.cboJpegQuality);
            this.groupBox1.Controls.Add(this.cboCompType);
            this.groupBox1.Controls.Add(this.txtFileCounter);
            this.groupBox1.Controls.Add(this.cboOverwrite);
            this.groupBox1.Controls.Add(this.txtFileName);
            this.groupBox1.Controls.Add(this.cboFileType);
            this.groupBox1.Controls.Add(this.cboScanTo);
            this.groupBox1.Controls.Add(this.label8);
            this.groupBox1.Controls.Add(this.label6);
            this.groupBox1.Controls.Add(this.label5);
            this.groupBox1.Controls.Add(this.label7);
            this.groupBox1.Controls.Add(this.label4);
            this.groupBox1.Controls.Add(this.label3);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Location = new System.Drawing.Point(8, 8);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(711, 160);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            // 
            // label169
            // 
            this.label169.Location = new System.Drawing.Point(312, 40);
            this.label169.Name = "label169";
            this.label169.Size = new System.Drawing.Size(85, 20);
            this.label169.TabIndex = 6;
            this.label169.Text = "ScanContinue";
            // 
            // chkScanContinue
            // 
            this.chkScanContinue.Location = new System.Drawing.Point(424, 40);
            this.chkScanContinue.Name = "chkScanContinue";
            this.chkScanContinue.Size = new System.Drawing.Size(17, 15);
            this.chkScanContinue.TabIndex = 7;
            this.chkScanContinue.UseVisualStyleBackColor = true;
            // 
            // cboScanMode
            // 
            this.cboScanMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboScanMode.Enabled = false;
            this.cboScanMode.Items.AddRange(new object[] {
            "Normal Scan",
            "Assist Scan"});
            this.cboScanMode.Location = new System.Drawing.Point(422, 15);
            this.cboScanMode.Name = "cboScanMode";
            this.cboScanMode.Size = new System.Drawing.Size(117, 20);
            this.cboScanMode.TabIndex = 3;
            // 
            // label40
            // 
            this.label40.Location = new System.Drawing.Point(312, 18);
            this.label40.Name = "label40";
            this.label40.Size = new System.Drawing.Size(73, 16);
            this.label40.TabIndex = 2;
            this.label40.Text = "ScanMode";
            // 
            // cboJpegQuality
            // 
            this.cboJpegQuality.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboJpegQuality.Items.AddRange(new object[] {
            "Level1",
            "Level2",
            "Level3",
            "Level4",
            "Level5",
            "Level6",
            "Level7"});
            this.cboJpegQuality.Location = new System.Drawing.Point(113, 129);
            this.cboJpegQuality.Name = "cboJpegQuality";
            this.cboJpegQuality.Size = new System.Drawing.Size(103, 20);
            this.cboJpegQuality.TabIndex = 18;
            // 
            // cboCompType
            // 
            this.cboCompType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboCompType.Items.AddRange(new object[] {
            "No Compress",
            "CCITT G3(1D)",
            "CCITT G3(2D)(KFactor=2)",
            "CCITT G3(2D)(KFactor=4)",
            "CCITT G4",
            "JPEG",
            "Old JPEG"});
            this.cboCompType.Location = new System.Drawing.Point(113, 106);
            this.cboCompType.Name = "cboCompType";
            this.cboCompType.Size = new System.Drawing.Size(161, 20);
            this.cboCompType.TabIndex = 16;
            // 
            // txtFileCounter
            // 
            this.txtFileCounter.Location = new System.Drawing.Point(422, 83);
            this.txtFileCounter.MaxLength = 5;
            this.txtFileCounter.Name = "txtFileCounter";
            this.txtFileCounter.Size = new System.Drawing.Size(45, 19);
            this.txtFileCounter.TabIndex = 13;
            this.txtFileCounter.Text = "-1";
            this.txtFileCounter.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtFileCounter.TextChanged += new System.EventHandler(this.txtFileCounter_TextChanged);
            // 
            // cboOverwrite
            // 
            this.cboOverwrite.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboOverwrite.Items.AddRange(new object[] {
            "OFF(Mode0)",
            "On",
            "Confirm(Mode0)",
            "OFF(Mode1)",
            "Confirm(Mode1)"});
            this.cboOverwrite.Location = new System.Drawing.Point(113, 83);
            this.cboOverwrite.Name = "cboOverwrite";
            this.cboOverwrite.Size = new System.Drawing.Size(121, 20);
            this.cboOverwrite.TabIndex = 11;
            // 
            // txtFileName
            // 
            this.txtFileName.Location = new System.Drawing.Point(113, 60);
            this.txtFileName.MaxLength = 254;
            this.txtFileName.Name = "txtFileName";
            this.txtFileName.Size = new System.Drawing.Size(430, 19);
            this.txtFileName.TabIndex = 9;
            // 
            // cboFileType
            // 
            this.cboFileType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboFileType.Items.AddRange(new object[] {
            "BMP",
            "TIFF",
            "MultipageTIFF",
            "JPEG",
            "PDF",
            "MultipagePDF",
            "Multi Image Output",
            "Auto Color Detection"});
            this.cboFileType.Location = new System.Drawing.Point(113, 37);
            this.cboFileType.Name = "cboFileType";
            this.cboFileType.Size = new System.Drawing.Size(161, 20);
            this.cboFileType.TabIndex = 5;
            this.cboFileType.SelectedIndexChanged += new System.EventHandler(this.cboFileType_SelectedIndexChanged);
            // 
            // cboScanTo
            // 
            this.cboScanTo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboScanTo.Enabled = false;
            this.cboScanTo.Items.AddRange(new object[] {
            "File",
            "Dib Handle",
            "RAW Image Handle"});
            this.cboScanTo.Location = new System.Drawing.Point(113, 14);
            this.cboScanTo.Name = "cboScanTo";
            this.cboScanTo.Size = new System.Drawing.Size(117, 20);
            this.cboScanTo.TabIndex = 1;
            // 
            // label8
            // 
            this.label8.Location = new System.Drawing.Point(8, 132);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(98, 16);
            this.label8.TabIndex = 17;
            this.label8.Text = "JpegQuality";
            // 
            // label6
            // 
            this.label6.Location = new System.Drawing.Point(472, 86);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(86, 16);
            this.label6.TabIndex = 14;
            this.label6.Text = "(-1,0-65535)";
            // 
            // label5
            // 
            this.label5.Location = new System.Drawing.Point(312, 87);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(67, 16);
            this.label5.TabIndex = 12;
            this.label5.Text = "FileCounter";
            // 
            // label7
            // 
            this.label7.Location = new System.Drawing.Point(8, 109);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(98, 16);
            this.label7.TabIndex = 15;
            this.label7.Text = "CompressionType";
            // 
            // label4
            // 
            this.label4.Location = new System.Drawing.Point(8, 86);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(58, 16);
            this.label4.TabIndex = 10;
            this.label4.Text = "Overwrite";
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point(8, 63);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(54, 16);
            this.label3.TabIndex = 8;
            this.label3.Text = "FileName";
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(8, 40);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(54, 16);
            this.label2.TabIndex = 4;
            this.label2.Text = "FileType";
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(8, 17);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(48, 16);
            this.label1.TabIndex = 0;
            this.label1.Text = "ScanTo";
            // 
            // Image
            // 
            this.Image.Controls.Add(this.groupBox5);
            this.Image.Controls.Add(this.groupBox4);
            this.Image.Location = new System.Drawing.Point(4, 22);
            this.Image.Name = "Image";
            this.Image.Size = new System.Drawing.Size(728, 453);
            this.Image.TabIndex = 1;
            this.Image.Text = "Image";
            // 
            // groupBox5
            // 
            this.groupBox5.Controls.Add(this.chkSmoothing);
            this.groupBox5.Controls.Add(this.label52);
            this.groupBox5.Controls.Add(this.chkPreFiltering);
            this.groupBox5.Controls.Add(this.label53);
            this.groupBox5.Controls.Add(this.cboNoiseRemoval);
            this.groupBox5.Controls.Add(this.label51);
            this.groupBox5.Controls.Add(this.cboThresholdCurve);
            this.groupBox5.Controls.Add(this.label50);
            this.groupBox5.Location = new System.Drawing.Point(8, 310);
            this.groupBox5.Name = "groupBox5";
            this.groupBox5.Size = new System.Drawing.Size(711, 109);
            this.groupBox5.TabIndex = 1;
            this.groupBox5.TabStop = false;
            // 
            // chkSmoothing
            // 
            this.chkSmoothing.Location = new System.Drawing.Point(113, 85);
            this.chkSmoothing.Name = "chkSmoothing";
            this.chkSmoothing.Size = new System.Drawing.Size(15, 14);
            this.chkSmoothing.TabIndex = 7;
            // 
            // label52
            // 
            this.label52.Location = new System.Drawing.Point(8, 84);
            this.label52.Name = "label52";
            this.label52.Size = new System.Drawing.Size(76, 16);
            this.label52.TabIndex = 6;
            this.label52.Text = "Smoothing";
            // 
            // chkPreFiltering
            // 
            this.chkPreFiltering.Location = new System.Drawing.Point(113, 62);
            this.chkPreFiltering.Name = "chkPreFiltering";
            this.chkPreFiltering.Size = new System.Drawing.Size(15, 14);
            this.chkPreFiltering.TabIndex = 5;
            // 
            // label53
            // 
            this.label53.Location = new System.Drawing.Point(8, 61);
            this.label53.Name = "label53";
            this.label53.Size = new System.Drawing.Size(76, 16);
            this.label53.TabIndex = 4;
            this.label53.Text = "PreFiltering";
            // 
            // cboNoiseRemoval
            // 
            this.cboNoiseRemoval.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboNoiseRemoval.Items.AddRange(new object[] {
            "None",
            "Matrix2",
            "Matrix3",
            "Matrix4",
            "Matrix5"});
            this.cboNoiseRemoval.Location = new System.Drawing.Point(113, 37);
            this.cboNoiseRemoval.Name = "cboNoiseRemoval";
            this.cboNoiseRemoval.Size = new System.Drawing.Size(62, 20);
            this.cboNoiseRemoval.TabIndex = 3;
            // 
            // label51
            // 
            this.label51.Location = new System.Drawing.Point(8, 38);
            this.label51.Name = "label51";
            this.label51.Size = new System.Drawing.Size(86, 16);
            this.label51.TabIndex = 2;
            this.label51.Text = "NoiseRemoval";
            // 
            // cboThresholdCurve
            // 
            this.cboThresholdCurve.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboThresholdCurve.Items.AddRange(new object[] {
            "Curve1",
            "Curve2",
            "Curve3",
            "Curve4",
            "Curve5",
            "Curve6",
            "Curve7",
            "Curve8"});
            this.cboThresholdCurve.Location = new System.Drawing.Point(113, 11);
            this.cboThresholdCurve.Name = "cboThresholdCurve";
            this.cboThresholdCurve.Size = new System.Drawing.Size(62, 20);
            this.cboThresholdCurve.TabIndex = 1;
            // 
            // label50
            // 
            this.label50.Location = new System.Drawing.Point(8, 15);
            this.label50.Name = "label50";
            this.label50.Size = new System.Drawing.Size(86, 16);
            this.label50.TabIndex = 0;
            this.label50.Text = "ThresholdCurve";
            // 
            // groupBox4
            // 
            this.groupBox4.Controls.Add(this.cboPatternRemoval);
            this.groupBox4.Controls.Add(this.chkVerticalLineReduction);
            this.groupBox4.Controls.Add(this.label142);
            this.groupBox4.Controls.Add(this.cboPunchHoleRemoval);
            this.groupBox4.Controls.Add(this.label141);
            this.groupBox4.Controls.Add(this.chksRGB);
            this.groupBox4.Controls.Add(this.label140);
            this.groupBox4.Controls.Add(this.label138);
            this.groupBox4.Controls.Add(this.cboSharpness);
            this.groupBox4.Controls.Add(this.label137);
            this.groupBox4.Controls.Add(this.label135);
            this.groupBox4.Controls.Add(this.txtADTCThreshold);
            this.groupBox4.Controls.Add(this.label136);
            this.groupBox4.Controls.Add(this.label133);
            this.groupBox4.Controls.Add(this.txtNoiseRejection);
            this.groupBox4.Controls.Add(this.label134);
            this.groupBox4.Controls.Add(this.label132);
            this.groupBox4.Controls.Add(this.txtSDTCSensitivity);
            this.groupBox4.Controls.Add(this.label131);
            this.groupBox4.Controls.Add(this.label130);
            this.groupBox4.Controls.Add(this.txtCharacterThickness);
            this.groupBox4.Controls.Add(this.label129);
            this.groupBox4.Controls.Add(this.label126);
            this.groupBox4.Controls.Add(this.txtDTCSensitivity);
            this.groupBox4.Controls.Add(this.label125);
            this.groupBox4.Controls.Add(this.label76);
            this.groupBox4.Controls.Add(this.txtShadow);
            this.groupBox4.Controls.Add(this.label75);
            this.groupBox4.Controls.Add(this.label74);
            this.groupBox4.Controls.Add(this.txtHighlight);
            this.groupBox4.Controls.Add(this.label73);
            this.groupBox4.Controls.Add(this.txtCustomGamma);
            this.groupBox4.Controls.Add(this.label49);
            this.groupBox4.Controls.Add(this.label48);
            this.groupBox4.Controls.Add(this.txtGammaFile);
            this.groupBox4.Controls.Add(this.cboGamma);
            this.groupBox4.Controls.Add(this.label47);
            this.groupBox4.Controls.Add(this.txtHalftoneFile);
            this.groupBox4.Controls.Add(this.cboHalftone);
            this.groupBox4.Controls.Add(this.label46);
            this.groupBox4.Controls.Add(this.cboSEE);
            this.groupBox4.Controls.Add(this.label45);
            this.groupBox4.Controls.Add(this.cboAutoSeparation);
            this.groupBox4.Controls.Add(this.label44);
            this.groupBox4.Controls.Add(this.cboOutline);
            this.groupBox4.Controls.Add(this.label43);
            this.groupBox4.Controls.Add(this.cboBackground);
            this.groupBox4.Controls.Add(this.label42);
            this.groupBox4.Controls.Add(this.cboRotation);
            this.groupBox4.Controls.Add(this.label41);
            this.groupBox4.Controls.Add(this.chkMirroring);
            this.groupBox4.Controls.Add(this.chkReverse);
            this.groupBox4.Controls.Add(this.label39);
            this.groupBox4.Controls.Add(this.txtThreshold);
            this.groupBox4.Controls.Add(this.label38);
            this.groupBox4.Controls.Add(this.label37);
            this.groupBox4.Controls.Add(this.txtContrast);
            this.groupBox4.Controls.Add(this.label36);
            this.groupBox4.Controls.Add(this.label35);
            this.groupBox4.Controls.Add(this.label34);
            this.groupBox4.Controls.Add(this.txtBrightness);
            this.groupBox4.Controls.Add(this.label33);
            this.groupBox4.Controls.Add(this.label127);
            this.groupBox4.Controls.Add(this.label128);
            this.groupBox4.Controls.Add(this.txtBackgroundThreshold);
            this.groupBox4.Controls.Add(this.txtFadingCompensation);
            this.groupBox4.Controls.Add(this.label139);
            this.groupBox4.Controls.Add(this.label143);
            this.groupBox4.Controls.Add(this.label157);
            this.groupBox4.Location = new System.Drawing.Point(8, 8);
            this.groupBox4.Name = "groupBox4";
            this.groupBox4.Size = new System.Drawing.Size(711, 302);
            this.groupBox4.TabIndex = 0;
            this.groupBox4.TabStop = false;
            // 
            // cboPatternRemoval
            // 
            this.cboPatternRemoval.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboPatternRemoval.Items.AddRange(new object[] {
            "OFF",
            "Standard",
            "Advanced"});
            this.cboPatternRemoval.Location = new System.Drawing.Point(384, 191);
            this.cboPatternRemoval.MaxDropDownItems = 3;
            this.cboPatternRemoval.Name = "cboPatternRemoval";
            this.cboPatternRemoval.Size = new System.Drawing.Size(91, 20);
            this.cboPatternRemoval.TabIndex = 57;
            // 
            // chkVerticalLineReduction
            // 
            this.chkVerticalLineReduction.Location = new System.Drawing.Point(606, 192);
            this.chkVerticalLineReduction.Name = "chkVerticalLineReduction";
            this.chkVerticalLineReduction.Size = new System.Drawing.Size(15, 14);
            this.chkVerticalLineReduction.TabIndex = 59;
            // 
            // label142
            // 
            this.label142.Location = new System.Drawing.Point(269, 193);
            this.label142.Name = "label142";
            this.label142.Size = new System.Drawing.Size(99, 16);
            this.label142.TabIndex = 56;
            this.label142.Text = "PatternRemoval";
            // 
            // cboPunchHoleRemoval
            // 
            this.cboPunchHoleRemoval.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboPunchHoleRemoval.Items.AddRange(new object[] {
            "Do not remove",
            "White",
            "Background color"});
            this.cboPunchHoleRemoval.Location = new System.Drawing.Point(113, 188);
            this.cboPunchHoleRemoval.Name = "cboPunchHoleRemoval";
            this.cboPunchHoleRemoval.Size = new System.Drawing.Size(125, 20);
            this.cboPunchHoleRemoval.TabIndex = 55;
            // 
            // label141
            // 
            this.label141.Location = new System.Drawing.Point(8, 192);
            this.label141.Name = "label141";
            this.label141.Size = new System.Drawing.Size(106, 16);
            this.label141.TabIndex = 54;
            this.label141.Text = "PunchHoleRemoval";
            // 
            // chksRGB
            // 
            this.chksRGB.Location = new System.Drawing.Point(606, 167);
            this.chksRGB.Name = "chksRGB";
            this.chksRGB.Size = new System.Drawing.Size(15, 14);
            this.chksRGB.TabIndex = 53;
            // 
            // label140
            // 
            this.label140.Location = new System.Drawing.Point(484, 167);
            this.label140.Name = "label140";
            this.label140.Size = new System.Drawing.Size(51, 16);
            this.label140.TabIndex = 52;
            this.label140.Text = "sRGB";
            // 
            // label138
            // 
            this.label138.Location = new System.Drawing.Point(269, 167);
            this.label138.Name = "label138";
            this.label138.Size = new System.Drawing.Size(113, 16);
            this.label138.TabIndex = 49;
            this.label138.Text = "FadingCompensation";
            // 
            // cboSharpness
            // 
            this.cboSharpness.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboSharpness.Items.AddRange(new object[] {
            "None",
            "Emphasis Low",
            "Emphasis Mid",
            "Emphasis High",
            "Edge Extract",
            "Level 1",
            "Level 2",
            "Level 3",
            "Level 4"});
            this.cboSharpness.Location = new System.Drawing.Point(113, 167);
            this.cboSharpness.MaxDropDownItems = 9;
            this.cboSharpness.Name = "cboSharpness";
            this.cboSharpness.Size = new System.Drawing.Size(125, 20);
            this.cboSharpness.TabIndex = 48;
            // 
            // label137
            // 
            this.label137.Location = new System.Drawing.Point(8, 167);
            this.label137.Name = "label137";
            this.label137.Size = new System.Drawing.Size(76, 16);
            this.label137.TabIndex = 47;
            this.label137.Text = "Sharpness";
            // 
            // label135
            // 
            this.label135.Location = new System.Drawing.Point(586, 142);
            this.label135.Name = "label135";
            this.label135.Size = new System.Drawing.Size(43, 16);
            this.label135.TabIndex = 46;
            this.label135.Text = "(1-255)";
            // 
            // txtADTCThreshold
            // 
            this.txtADTCThreshold.Location = new System.Drawing.Point(549, 137);
            this.txtADTCThreshold.MaxLength = 3;
            this.txtADTCThreshold.Name = "txtADTCThreshold";
            this.txtADTCThreshold.Size = new System.Drawing.Size(36, 19);
            this.txtADTCThreshold.TabIndex = 45;
            this.txtADTCThreshold.Text = "83";
            this.txtADTCThreshold.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtADTCThreshold.TextChanged += new System.EventHandler(this.txtADTCThreshold_TextChanged);
            // 
            // label136
            // 
            this.label136.Location = new System.Drawing.Point(433, 140);
            this.label136.Name = "label136";
            this.label136.Size = new System.Drawing.Size(116, 16);
            this.label136.TabIndex = 44;
            this.label136.Text = "ADTCThreshold";
            // 
            // label133
            // 
            this.label133.Location = new System.Drawing.Point(376, 140);
            this.label133.Name = "label133";
            this.label133.Size = new System.Drawing.Size(43, 16);
            this.label133.TabIndex = 43;
            this.label133.Text = "(0-20)";
            // 
            // txtNoiseRejection
            // 
            this.txtNoiseRejection.Location = new System.Drawing.Point(338, 137);
            this.txtNoiseRejection.MaxLength = 3;
            this.txtNoiseRejection.Name = "txtNoiseRejection";
            this.txtNoiseRejection.Size = new System.Drawing.Size(36, 19);
            this.txtNoiseRejection.TabIndex = 42;
            this.txtNoiseRejection.Text = "0";
            this.txtNoiseRejection.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtNoiseRejection.TextChanged += new System.EventHandler(this.txtNoiseRejection_TextChanged);
            // 
            // label134
            // 
            this.label134.Location = new System.Drawing.Point(226, 140);
            this.label134.Name = "label134";
            this.label134.Size = new System.Drawing.Size(116, 16);
            this.label134.TabIndex = 41;
            this.label134.Text = "NoiseRejection";
            // 
            // label132
            // 
            this.label132.Location = new System.Drawing.Point(585, 119);
            this.label132.Name = "label132";
            this.label132.Size = new System.Drawing.Size(43, 16);
            this.label132.TabIndex = 37;
            this.label132.Text = "(1-3)";
            // 
            // txtSDTCSensitivity
            // 
            this.txtSDTCSensitivity.Location = new System.Drawing.Point(549, 113);
            this.txtSDTCSensitivity.MaxLength = 3;
            this.txtSDTCSensitivity.Name = "txtSDTCSensitivity";
            this.txtSDTCSensitivity.Size = new System.Drawing.Size(36, 19);
            this.txtSDTCSensitivity.TabIndex = 36;
            this.txtSDTCSensitivity.Text = "2";
            this.txtSDTCSensitivity.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtSDTCSensitivity.TextChanged += new System.EventHandler(this.txtSDTCSensitivity_TextChanged);
            // 
            // label131
            // 
            this.label131.Location = new System.Drawing.Point(433, 117);
            this.label131.Name = "label131";
            this.label131.Size = new System.Drawing.Size(116, 16);
            this.label131.TabIndex = 35;
            this.label131.Text = "SDTCSensitivity";
            // 
            // label130
            // 
            this.label130.Location = new System.Drawing.Point(376, 116);
            this.label130.Name = "label130";
            this.label130.Size = new System.Drawing.Size(43, 16);
            this.label130.TabIndex = 34;
            this.label130.Text = "(0-10)";
            // 
            // txtCharacterThickness
            // 
            this.txtCharacterThickness.Location = new System.Drawing.Point(338, 113);
            this.txtCharacterThickness.MaxLength = 3;
            this.txtCharacterThickness.Name = "txtCharacterThickness";
            this.txtCharacterThickness.Size = new System.Drawing.Size(36, 19);
            this.txtCharacterThickness.TabIndex = 33;
            this.txtCharacterThickness.Text = "5";
            this.txtCharacterThickness.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtCharacterThickness.TextChanged += new System.EventHandler(this.txtCharacterThickness_TextChanged);
            // 
            // label129
            // 
            this.label129.Location = new System.Drawing.Point(226, 117);
            this.label129.Name = "label129";
            this.label129.Size = new System.Drawing.Size(116, 16);
            this.label129.TabIndex = 32;
            this.label129.Text = "CharacterThickness";
            // 
            // label126
            // 
            this.label126.Location = new System.Drawing.Point(376, 94);
            this.label126.Name = "label126";
            this.label126.Size = new System.Drawing.Size(43, 16);
            this.label126.TabIndex = 25;
            this.label126.Text = "(0-100)";
            // 
            // txtDTCSensitivity
            // 
            this.txtDTCSensitivity.Location = new System.Drawing.Point(338, 89);
            this.txtDTCSensitivity.MaxLength = 3;
            this.txtDTCSensitivity.Name = "txtDTCSensitivity";
            this.txtDTCSensitivity.Size = new System.Drawing.Size(36, 19);
            this.txtDTCSensitivity.TabIndex = 24;
            this.txtDTCSensitivity.Text = "50";
            this.txtDTCSensitivity.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtDTCSensitivity.TextChanged += new System.EventHandler(this.txtDTCSensitivity_TextChanged);
            // 
            // label125
            // 
            this.label125.Location = new System.Drawing.Point(226, 92);
            this.label125.Name = "label125";
            this.label125.Size = new System.Drawing.Size(107, 16);
            this.label125.TabIndex = 23;
            this.label125.Text = "DTCSensitivity";
            // 
            // label76
            // 
            this.label76.Location = new System.Drawing.Point(153, 141);
            this.label76.Name = "label76";
            this.label76.Size = new System.Drawing.Size(49, 16);
            this.label76.TabIndex = 40;
            this.label76.Text = "(0-254)";
            // 
            // txtShadow
            // 
            this.txtShadow.Location = new System.Drawing.Point(113, 137);
            this.txtShadow.MaxLength = 3;
            this.txtShadow.Name = "txtShadow";
            this.txtShadow.Size = new System.Drawing.Size(36, 19);
            this.txtShadow.TabIndex = 39;
            this.txtShadow.Text = "10";
            this.txtShadow.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtShadow.TextChanged += new System.EventHandler(this.txtShadow_TextChanged);
            // 
            // label75
            // 
            this.label75.Location = new System.Drawing.Point(8, 142);
            this.label75.Name = "label75";
            this.label75.Size = new System.Drawing.Size(76, 16);
            this.label75.TabIndex = 38;
            this.label75.Text = "Shadow";
            // 
            // label74
            // 
            this.label74.Location = new System.Drawing.Point(153, 116);
            this.label74.Name = "label74";
            this.label74.Size = new System.Drawing.Size(49, 16);
            this.label74.TabIndex = 31;
            this.label74.Text = "(1-255)";
            // 
            // txtHighlight
            // 
            this.txtHighlight.Location = new System.Drawing.Point(113, 113);
            this.txtHighlight.MaxLength = 3;
            this.txtHighlight.Name = "txtHighlight";
            this.txtHighlight.Size = new System.Drawing.Size(36, 19);
            this.txtHighlight.TabIndex = 30;
            this.txtHighlight.Text = "230";
            this.txtHighlight.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtHighlight.TextChanged += new System.EventHandler(this.txtHighlight_TextChanged);
            // 
            // label73
            // 
            this.label73.Location = new System.Drawing.Point(8, 117);
            this.label73.Name = "label73";
            this.label73.Size = new System.Drawing.Size(76, 16);
            this.label73.TabIndex = 29;
            this.label73.Text = "Highlight";
            // 
            // txtCustomGamma
            // 
            this.txtCustomGamma.Location = new System.Drawing.Point(113, 267);
            this.txtCustomGamma.MaxLength = 4;
            this.txtCustomGamma.Name = "txtCustomGamma";
            this.txtCustomGamma.Size = new System.Drawing.Size(36, 19);
            this.txtCustomGamma.TabIndex = 67;
            this.txtCustomGamma.Text = "2.2";
            this.txtCustomGamma.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtCustomGamma.TextChanged += new System.EventHandler(this.txtCustomGamma_TextChanged);
            // 
            // label49
            // 
            this.label49.Location = new System.Drawing.Point(8, 267);
            this.label49.Name = "label49";
            this.label49.Size = new System.Drawing.Size(87, 16);
            this.label49.TabIndex = 66;
            this.label49.Text = "CustomGamma";
            // 
            // label48
            // 
            this.label48.Location = new System.Drawing.Point(153, 270);
            this.label48.Name = "label48";
            this.label48.Size = new System.Drawing.Size(62, 16);
            this.label48.TabIndex = 68;
            this.label48.Text = "(0.1-10.0)";
            // 
            // txtGammaFile
            // 
            this.txtGammaFile.Location = new System.Drawing.Point(241, 240);
            this.txtGammaFile.MaxLength = 254;
            this.txtGammaFile.Name = "txtGammaFile";
            this.txtGammaFile.Size = new System.Drawing.Size(305, 19);
            this.txtGammaFile.TabIndex = 65;
            // 
            // cboGamma
            // 
            this.cboGamma.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboGamma.Items.AddRange(new object[] {
            "None",
            "Soft",
            "Sharp",
            "GammaPatternFile",
            "Custom",
            "Bright",
            "Standard"});
            this.cboGamma.Location = new System.Drawing.Point(113, 239);
            this.cboGamma.MaxDropDownItems = 7;
            this.cboGamma.Name = "cboGamma";
            this.cboGamma.Size = new System.Drawing.Size(125, 20);
            this.cboGamma.TabIndex = 64;
            this.cboGamma.SelectedIndexChanged += new System.EventHandler(this.cboGamma_SelectedIndexChanged);
            // 
            // label47
            // 
            this.label47.Location = new System.Drawing.Point(8, 242);
            this.label47.Name = "label47";
            this.label47.Size = new System.Drawing.Size(76, 16);
            this.label47.TabIndex = 63;
            this.label47.Text = "Gamma";
            // 
            // txtHalftoneFile
            // 
            this.txtHalftoneFile.Location = new System.Drawing.Point(241, 214);
            this.txtHalftoneFile.MaxLength = 254;
            this.txtHalftoneFile.Name = "txtHalftoneFile";
            this.txtHalftoneFile.Size = new System.Drawing.Size(305, 19);
            this.txtHalftoneFile.TabIndex = 62;
            // 
            // cboHalftone
            // 
            this.cboHalftone.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboHalftone.Items.AddRange(new object[] {
            "None",
            "DitherPattern0",
            "DitherPattern1",
            "DitherPattern2",
            "DitherPattern3",
            "DitherPatternFile",
            "ErrorDiffusion"});
            this.cboHalftone.Location = new System.Drawing.Point(113, 214);
            this.cboHalftone.Name = "cboHalftone";
            this.cboHalftone.Size = new System.Drawing.Size(125, 20);
            this.cboHalftone.TabIndex = 61;
            this.cboHalftone.SelectedIndexChanged += new System.EventHandler(this.cboHalftone_SelectedIndexChanged);
            // 
            // label46
            // 
            this.label46.Location = new System.Drawing.Point(8, 217);
            this.label46.Name = "label46";
            this.label46.Size = new System.Drawing.Size(76, 16);
            this.label46.TabIndex = 60;
            this.label46.Text = "Halftone";
            // 
            // cboSEE
            // 
            this.cboSEE.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboSEE.Items.AddRange(new object[] {
            "OFF",
            "ON"});
            this.cboSEE.Location = new System.Drawing.Point(549, 64);
            this.cboSEE.Name = "cboSEE";
            this.cboSEE.Size = new System.Drawing.Size(57, 20);
            this.cboSEE.TabIndex = 19;
            // 
            // label45
            // 
            this.label45.Location = new System.Drawing.Point(433, 67);
            this.label45.Name = "label45";
            this.label45.Size = new System.Drawing.Size(76, 16);
            this.label45.TabIndex = 18;
            this.label45.Text = "SEE";
            // 
            // cboAutoSeparation
            // 
            this.cboAutoSeparation.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboAutoSeparation.Items.AddRange(new object[] {
            "OFF",
            "ON"});
            this.cboAutoSeparation.Location = new System.Drawing.Point(338, 64);
            this.cboAutoSeparation.Name = "cboAutoSeparation";
            this.cboAutoSeparation.Size = new System.Drawing.Size(57, 20);
            this.cboAutoSeparation.TabIndex = 17;
            // 
            // label44
            // 
            this.label44.Location = new System.Drawing.Point(226, 67);
            this.label44.Name = "label44";
            this.label44.Size = new System.Drawing.Size(86, 16);
            this.label44.TabIndex = 16;
            this.label44.Text = "AutoSeparation";
            // 
            // cboOutline
            // 
            this.cboOutline.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboOutline.Items.AddRange(new object[] {
            "None",
            "Outline Emphasis Low",
            "Outline Emphasis Mid",
            "Outline Emphasis High",
            "Outline Smooth",
            "Edge Extract"});
            this.cboOutline.Location = new System.Drawing.Point(549, 40);
            this.cboOutline.Name = "cboOutline";
            this.cboOutline.Size = new System.Drawing.Size(152, 20);
            this.cboOutline.TabIndex = 12;
            // 
            // label43
            // 
            this.label43.Location = new System.Drawing.Point(433, 42);
            this.label43.Name = "label43";
            this.label43.Size = new System.Drawing.Size(76, 16);
            this.label43.TabIndex = 11;
            this.label43.Text = "Outline";
            // 
            // cboBackground
            // 
            this.cboBackground.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboBackground.Items.AddRange(new object[] {
            "OFF",
            "ON",
            "AUTO"});
            this.cboBackground.Location = new System.Drawing.Point(338, 40);
            this.cboBackground.Name = "cboBackground";
            this.cboBackground.Size = new System.Drawing.Size(57, 20);
            this.cboBackground.TabIndex = 10;
            // 
            // label42
            // 
            this.label42.Location = new System.Drawing.Point(226, 42);
            this.label42.Name = "label42";
            this.label42.Size = new System.Drawing.Size(76, 16);
            this.label42.TabIndex = 9;
            this.label42.Text = "Background";
            // 
            // cboRotation
            // 
            this.cboRotation.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboRotation.Items.AddRange(new object[] {
            "None",
            "R90",
            "R180",
            "R270",
            "Automatic"});
            this.cboRotation.Location = new System.Drawing.Point(549, 15);
            this.cboRotation.Name = "cboRotation";
            this.cboRotation.Size = new System.Drawing.Size(95, 20);
            this.cboRotation.TabIndex = 5;
            // 
            // label41
            // 
            this.label41.Location = new System.Drawing.Point(433, 17);
            this.label41.Name = "label41";
            this.label41.Size = new System.Drawing.Size(76, 16);
            this.label41.TabIndex = 4;
            this.label41.Text = "Rotation";
            // 
            // chkMirroring
            // 
            this.chkMirroring.Location = new System.Drawing.Point(338, 17);
            this.chkMirroring.Name = "chkMirroring";
            this.chkMirroring.Size = new System.Drawing.Size(15, 14);
            this.chkMirroring.TabIndex = 3;
            // 
            // chkReverse
            // 
            this.chkReverse.Location = new System.Drawing.Point(113, 17);
            this.chkReverse.Name = "chkReverse";
            this.chkReverse.Size = new System.Drawing.Size(15, 14);
            this.chkReverse.TabIndex = 1;
            // 
            // label39
            // 
            this.label39.Location = new System.Drawing.Point(8, 17);
            this.label39.Name = "label39";
            this.label39.Size = new System.Drawing.Size(76, 16);
            this.label39.TabIndex = 0;
            this.label39.Text = "Reverse";
            // 
            // txtThreshold
            // 
            this.txtThreshold.Location = new System.Drawing.Point(113, 88);
            this.txtThreshold.MaxLength = 3;
            this.txtThreshold.Name = "txtThreshold";
            this.txtThreshold.Size = new System.Drawing.Size(36, 19);
            this.txtThreshold.TabIndex = 21;
            this.txtThreshold.Text = "128";
            this.txtThreshold.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtThreshold.TextChanged += new System.EventHandler(this.txtThreshold_TextChanged);
            // 
            // label38
            // 
            this.label38.Location = new System.Drawing.Point(8, 92);
            this.label38.Name = "label38";
            this.label38.Size = new System.Drawing.Size(76, 16);
            this.label38.TabIndex = 20;
            this.label38.Text = "Threshold";
            // 
            // label37
            // 
            this.label37.Location = new System.Drawing.Point(153, 91);
            this.label37.Name = "label37";
            this.label37.Size = new System.Drawing.Size(76, 16);
            this.label37.TabIndex = 22;
            this.label37.Text = "(-2,-1,0-255)";
            // 
            // txtContrast
            // 
            this.txtContrast.Location = new System.Drawing.Point(113, 64);
            this.txtContrast.MaxLength = 3;
            this.txtContrast.Name = "txtContrast";
            this.txtContrast.Size = new System.Drawing.Size(36, 19);
            this.txtContrast.TabIndex = 14;
            this.txtContrast.Text = "128";
            this.txtContrast.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtContrast.TextChanged += new System.EventHandler(this.txtContrast_TextChanged);
            // 
            // label36
            // 
            this.label36.Location = new System.Drawing.Point(8, 67);
            this.label36.Name = "label36";
            this.label36.Size = new System.Drawing.Size(76, 16);
            this.label36.TabIndex = 13;
            this.label36.Text = "Contrast";
            // 
            // label35
            // 
            this.label35.Location = new System.Drawing.Point(153, 68);
            this.label35.Name = "label35";
            this.label35.Size = new System.Drawing.Size(49, 16);
            this.label35.TabIndex = 15;
            this.label35.Text = "(1-255)";
            // 
            // label34
            // 
            this.label34.Location = new System.Drawing.Point(153, 44);
            this.label34.Name = "label34";
            this.label34.Size = new System.Drawing.Size(49, 16);
            this.label34.TabIndex = 8;
            this.label34.Text = "(1-255)";
            // 
            // txtBrightness
            // 
            this.txtBrightness.Location = new System.Drawing.Point(113, 40);
            this.txtBrightness.MaxLength = 3;
            this.txtBrightness.Name = "txtBrightness";
            this.txtBrightness.Size = new System.Drawing.Size(36, 19);
            this.txtBrightness.TabIndex = 7;
            this.txtBrightness.Text = "128";
            this.txtBrightness.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtBrightness.TextChanged += new System.EventHandler(this.txtBrightness_TextChanged);
            // 
            // label33
            // 
            this.label33.Location = new System.Drawing.Point(8, 42);
            this.label33.Name = "label33";
            this.label33.Size = new System.Drawing.Size(76, 16);
            this.label33.TabIndex = 6;
            this.label33.Text = "Brightness";
            // 
            // label127
            // 
            this.label127.Location = new System.Drawing.Point(433, 92);
            this.label127.Name = "label127";
            this.label127.Size = new System.Drawing.Size(116, 16);
            this.label127.TabIndex = 26;
            this.label127.Text = "BackgroundThreshold";
            // 
            // label128
            // 
            this.label128.Location = new System.Drawing.Point(585, 94);
            this.label128.Name = "label128";
            this.label128.Size = new System.Drawing.Size(43, 16);
            this.label128.TabIndex = 28;
            this.label128.Text = "(0-100)";
            // 
            // txtBackgroundThreshold
            // 
            this.txtBackgroundThreshold.Location = new System.Drawing.Point(549, 89);
            this.txtBackgroundThreshold.MaxLength = 3;
            this.txtBackgroundThreshold.Name = "txtBackgroundThreshold";
            this.txtBackgroundThreshold.Size = new System.Drawing.Size(36, 19);
            this.txtBackgroundThreshold.TabIndex = 27;
            this.txtBackgroundThreshold.Text = "50";
            this.txtBackgroundThreshold.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtBackgroundThreshold.TextChanged += new System.EventHandler(this.txtBackgroundThreshold_TextChanged);
            // 
            // txtFadingCompensation
            // 
            this.txtFadingCompensation.Location = new System.Drawing.Point(384, 167);
            this.txtFadingCompensation.MaxLength = 3;
            this.txtFadingCompensation.Name = "txtFadingCompensation";
            this.txtFadingCompensation.Size = new System.Drawing.Size(36, 19);
            this.txtFadingCompensation.TabIndex = 50;
            this.txtFadingCompensation.Text = "0";
            this.txtFadingCompensation.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtFadingCompensation.TextChanged += new System.EventHandler(this.txtFadingCompensation_TextChanged);
            // 
            // label139
            // 
            this.label139.Location = new System.Drawing.Point(422, 170);
            this.label139.Name = "label139";
            this.label139.Size = new System.Drawing.Size(43, 16);
            this.label139.TabIndex = 51;
            this.label139.Text = "(0-5)";
            // 
            // label143
            // 
            this.label143.Location = new System.Drawing.Point(226, 17);
            this.label143.Name = "label143";
            this.label143.Size = new System.Drawing.Size(76, 16);
            this.label143.TabIndex = 2;
            this.label143.Text = "Mirroing";
            // 
            // label157
            // 
            this.label157.Location = new System.Drawing.Point(484, 193);
            this.label157.Name = "label157";
            this.label157.Size = new System.Drawing.Size(121, 16);
            this.label157.TabIndex = 58;
            this.label157.Text = "VerticalLineReduction";
            // 
            // Extention
            // 
            this.Extention.Controls.Add(this.groupBox7);
            this.Extention.Location = new System.Drawing.Point(4, 22);
            this.Extention.Name = "Extention";
            this.Extention.Size = new System.Drawing.Size(728, 453);
            this.Extention.TabIndex = 2;
            this.Extention.Text = "Extension";
            // 
            // groupBox7
            // 
            this.groupBox7.Controls.Add(this.chkHwCompression);
            this.groupBox7.Controls.Add(this.label171);
            this.groupBox7.Controls.Add(this.cboBlankPageNotice);
            this.groupBox7.Controls.Add(this.label170);
            this.groupBox7.Controls.Add(this.txtMultiFeedModeChangeSize);
            this.groupBox7.Controls.Add(this.label167);
            this.groupBox7.Controls.Add(this.txtCropMarginSize);
            this.groupBox7.Controls.Add(this.label164);
            this.groupBox7.Controls.Add(this.cboCropPriority);
            this.groupBox7.Controls.Add(this.chkAIQCNotice);
            this.groupBox7.Controls.Add(this.txtFilterSaturationSensitivity);
            this.groupBox7.Controls.Add(this.label156);
            this.groupBox7.Controls.Add(this.label155);
            this.groupBox7.Controls.Add(this.cboOverScan);
            this.groupBox7.Controls.Add(this.label77);
            this.groupBox7.Controls.Add(this.chkAutoBorderDetection);
            this.groupBox7.Controls.Add(this.label71);
            this.groupBox7.Controls.Add(this.txtSkipBlackPage);
            this.groupBox7.Controls.Add(this.label70);
            this.groupBox7.Controls.Add(this.label69);
            this.groupBox7.Controls.Add(this.label68);
            this.groupBox7.Controls.Add(this.txtSkipWhitePage);
            this.groupBox7.Controls.Add(this.label67);
            this.groupBox7.Controls.Add(this.cboFilter);
            this.groupBox7.Controls.Add(this.label66);
            this.groupBox7.Controls.Add(this.cboMultiFeed);
            this.groupBox7.Controls.Add(this.label65);
            this.groupBox7.Controls.Add(this.cboBinding);
            this.groupBox7.Controls.Add(this.label64);
            this.groupBox7.Controls.Add(this.cboJobControl);
            this.groupBox7.Controls.Add(this.label63);
            this.groupBox7.Controls.Add(this.cboJobControlMode);
            this.groupBox7.Controls.Add(this.label118);
            this.groupBox7.Controls.Add(this.txtBlankPageSkip);
            this.groupBox7.Controls.Add(this.label119);
            this.groupBox7.Controls.Add(this.label120);
            this.groupBox7.Controls.Add(this.label161);
            this.groupBox7.Controls.Add(this.label162);
            this.groupBox7.Controls.Add(this.label163);
            this.groupBox7.Controls.Add(this.cboDeskew);
            this.groupBox7.Controls.Add(this.label166);
            this.groupBox7.Controls.Add(this.label168);
            this.groupBox7.Location = new System.Drawing.Point(8, 8);
            this.groupBox7.Name = "groupBox7";
            this.groupBox7.Size = new System.Drawing.Size(711, 432);
            this.groupBox7.TabIndex = 0;
            this.groupBox7.TabStop = false;
            // 
            // chkHwCompression
            // 
            this.chkHwCompression.Location = new System.Drawing.Point(172, 394);
            this.chkHwCompression.Name = "chkHwCompression";
            this.chkHwCompression.Size = new System.Drawing.Size(18, 16);
            this.chkHwCompression.TabIndex = 41;
            // 
            // label171
            // 
            this.label171.Location = new System.Drawing.Point(11, 396);
            this.label171.Name = "label171";
            this.label171.Size = new System.Drawing.Size(99, 14);
            this.label171.TabIndex = 40;
            this.label171.Text = "HwCompression";
            // 
            // cboBlankPageNotice
            // 
            this.cboBlankPageNotice.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboBlankPageNotice.Items.AddRange(new object[] {
            "OFF",
            "ON"});
            this.cboBlankPageNotice.Location = new System.Drawing.Point(172, 175);
            this.cboBlankPageNotice.Name = "cboBlankPageNotice";
            this.cboBlankPageNotice.Size = new System.Drawing.Size(79, 20);
            this.cboBlankPageNotice.TabIndex = 17;
            // 
            // label170
            // 
            this.label170.Location = new System.Drawing.Point(9, 178);
            this.label170.Name = "label170";
            this.label170.Size = new System.Drawing.Size(99, 14);
            this.label170.TabIndex = 16;
            this.label170.Text = "BlankPageNotice";
            // 
            // txtMultiFeedModeChangeSize
            // 
            this.txtMultiFeedModeChangeSize.Location = new System.Drawing.Point(171, 373);
            this.txtMultiFeedModeChangeSize.MaxLength = 8;
            this.txtMultiFeedModeChangeSize.Name = "txtMultiFeedModeChangeSize";
            this.txtMultiFeedModeChangeSize.Size = new System.Drawing.Size(45, 19);
            this.txtMultiFeedModeChangeSize.TabIndex = 38;
            this.txtMultiFeedModeChangeSize.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtMultiFeedModeChangeSize.TextChanged += new System.EventHandler(this.txtMultiFeedModeChangeSize_TextChanged);
            // 
            // label167
            // 
            this.label167.Location = new System.Drawing.Point(221, 376);
            this.label167.Name = "label167";
            this.label167.Size = new System.Drawing.Size(36, 16);
            this.label167.TabIndex = 39;
            this.label167.Text = "inch";
            // 
            // txtCropMarginSize
            // 
            this.txtCropMarginSize.Location = new System.Drawing.Point(171, 350);
            this.txtCropMarginSize.MaxLength = 4;
            this.txtCropMarginSize.Name = "txtCropMarginSize";
            this.txtCropMarginSize.Size = new System.Drawing.Size(36, 19);
            this.txtCropMarginSize.TabIndex = 35;
            this.txtCropMarginSize.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtCropMarginSize.TextChanged += new System.EventHandler(this.txtCropMarginSize_TextChanged);
            // 
            // label164
            // 
            this.label164.Location = new System.Drawing.Point(11, 354);
            this.label164.Name = "label164";
            this.label164.Size = new System.Drawing.Size(87, 16);
            this.label164.TabIndex = 34;
            this.label164.Text = "CropMarginSize";
            // 
            // cboCropPriority
            // 
            this.cboCropPriority.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboCropPriority.Items.AddRange(new object[] {
            "Speed",
            "Accuracy"});
            this.cboCropPriority.Location = new System.Drawing.Point(172, 305);
            this.cboCropPriority.MaxDropDownItems = 2;
            this.cboCropPriority.Name = "cboCropPriority";
            this.cboCropPriority.Size = new System.Drawing.Size(79, 20);
            this.cboCropPriority.TabIndex = 31;
            // 
            // chkAIQCNotice
            // 
            this.chkAIQCNotice.Location = new System.Drawing.Point(172, 286);
            this.chkAIQCNotice.Name = "chkAIQCNotice";
            this.chkAIQCNotice.Size = new System.Drawing.Size(18, 16);
            this.chkAIQCNotice.TabIndex = 29;
            // 
            // txtFilterSaturationSensitivity
            // 
            this.txtFilterSaturationSensitivity.Location = new System.Drawing.Point(172, 129);
            this.txtFilterSaturationSensitivity.MaxLength = 3;
            this.txtFilterSaturationSensitivity.Name = "txtFilterSaturationSensitivity";
            this.txtFilterSaturationSensitivity.Size = new System.Drawing.Size(54, 19);
            this.txtFilterSaturationSensitivity.TabIndex = 11;
            this.txtFilterSaturationSensitivity.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtFilterSaturationSensitivity.TextChanged += new System.EventHandler(this.txtFilterSaturationSensitivity_TextChanged);
            // 
            // label156
            // 
            this.label156.Location = new System.Drawing.Point(232, 132);
            this.label156.Name = "label156";
            this.label156.Size = new System.Drawing.Size(62, 14);
            this.label156.TabIndex = 12;
            this.label156.Text = "(0-100)";
            // 
            // label155
            // 
            this.label155.Location = new System.Drawing.Point(9, 132);
            this.label155.Name = "label155";
            this.label155.Size = new System.Drawing.Size(176, 14);
            this.label155.TabIndex = 10;
            this.label155.Text = "FilterSaturationSensitivity ";
            // 
            // cboOverScan
            // 
            this.cboOverScan.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboOverScan.Items.AddRange(new object[] {
            "OFF",
            "ON"});
            this.cboOverScan.Location = new System.Drawing.Point(171, 264);
            this.cboOverScan.Name = "cboOverScan";
            this.cboOverScan.Size = new System.Drawing.Size(79, 20);
            this.cboOverScan.TabIndex = 27;
            // 
            // label77
            // 
            this.label77.Location = new System.Drawing.Point(10, 267);
            this.label77.Name = "label77";
            this.label77.Size = new System.Drawing.Size(99, 14);
            this.label77.TabIndex = 26;
            this.label77.Text = "OverScan";
            // 
            // chkAutoBorderDetection
            // 
            this.chkAutoBorderDetection.Location = new System.Drawing.Point(172, 243);
            this.chkAutoBorderDetection.Name = "chkAutoBorderDetection";
            this.chkAutoBorderDetection.Size = new System.Drawing.Size(18, 16);
            this.chkAutoBorderDetection.TabIndex = 25;
            // 
            // label71
            // 
            this.label71.Location = new System.Drawing.Point(9, 246);
            this.label71.Name = "label71";
            this.label71.Size = new System.Drawing.Size(121, 14);
            this.label71.TabIndex = 24;
            this.label71.Text = "AutoBorderDetection";
            // 
            // txtSkipBlackPage
            // 
            this.txtSkipBlackPage.Location = new System.Drawing.Point(172, 220);
            this.txtSkipBlackPage.MaxLength = 2;
            this.txtSkipBlackPage.Name = "txtSkipBlackPage";
            this.txtSkipBlackPage.Size = new System.Drawing.Size(54, 19);
            this.txtSkipBlackPage.TabIndex = 22;
            this.txtSkipBlackPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtSkipBlackPage.TextChanged += new System.EventHandler(this.txtSkipBlackPage_TextChanged);
            // 
            // label70
            // 
            this.label70.Location = new System.Drawing.Point(9, 224);
            this.label70.Name = "label70";
            this.label70.Size = new System.Drawing.Size(99, 14);
            this.label70.TabIndex = 21;
            this.label70.Text = "SkipBlackPage";
            // 
            // label69
            // 
            this.label69.Location = new System.Drawing.Point(232, 223);
            this.label69.Name = "label69";
            this.label69.Size = new System.Drawing.Size(62, 14);
            this.label69.TabIndex = 23;
            this.label69.Text = "(0-15)";
            // 
            // label68
            // 
            this.label68.Location = new System.Drawing.Point(9, 201);
            this.label68.Name = "label68";
            this.label68.Size = new System.Drawing.Size(99, 14);
            this.label68.TabIndex = 18;
            this.label68.Text = "SkipWhitePage";
            // 
            // txtSkipWhitePage
            // 
            this.txtSkipWhitePage.Location = new System.Drawing.Point(172, 197);
            this.txtSkipWhitePage.MaxLength = 2;
            this.txtSkipWhitePage.Name = "txtSkipWhitePage";
            this.txtSkipWhitePage.Size = new System.Drawing.Size(54, 19);
            this.txtSkipWhitePage.TabIndex = 19;
            this.txtSkipWhitePage.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtSkipWhitePage.TextChanged += new System.EventHandler(this.txtSkipWhitePage_TextChanged);
            // 
            // label67
            // 
            this.label67.Location = new System.Drawing.Point(232, 202);
            this.label67.Name = "label67";
            this.label67.Size = new System.Drawing.Size(62, 14);
            this.label67.TabIndex = 20;
            this.label67.Text = "(0-15)";
            // 
            // cboFilter
            // 
            this.cboFilter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboFilter.ItemHeight = 12;
            this.cboFilter.Items.AddRange(new object[] {
            "Green",
            "Red",
            "Blue",
            "None",
            "White",
            "Saturation",
            "Specified by device",
            "Custom1",
            "Custom2",
            "Custom3",
            "Custom4"});
            this.cboFilter.Location = new System.Drawing.Point(172, 106);
            this.cboFilter.MaxDropDownItems = 11;
            this.cboFilter.Name = "cboFilter";
            this.cboFilter.Size = new System.Drawing.Size(148, 20);
            this.cboFilter.TabIndex = 9;
            // 
            // label66
            // 
            this.label66.Location = new System.Drawing.Point(9, 109);
            this.label66.Name = "label66";
            this.label66.Size = new System.Drawing.Size(107, 14);
            this.label66.TabIndex = 8;
            this.label66.Text = "Filter";
            // 
            // cboMultiFeed
            // 
            this.cboMultiFeed.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboMultiFeed.Items.AddRange(new object[] {
            "None",
            "Mode0",
            "Mode1",
            "Mode2",
            "Mode3"});
            this.cboMultiFeed.Location = new System.Drawing.Point(172, 83);
            this.cboMultiFeed.Name = "cboMultiFeed";
            this.cboMultiFeed.Size = new System.Drawing.Size(79, 20);
            this.cboMultiFeed.TabIndex = 7;
            // 
            // label65
            // 
            this.label65.Location = new System.Drawing.Point(9, 85);
            this.label65.Name = "label65";
            this.label65.Size = new System.Drawing.Size(107, 14);
            this.label65.TabIndex = 6;
            this.label65.Text = "MultiFeed";
            // 
            // cboBinding
            // 
            this.cboBinding.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboBinding.Items.AddRange(new object[] {
            "Side",
            "Height"});
            this.cboBinding.Location = new System.Drawing.Point(172, 60);
            this.cboBinding.Name = "cboBinding";
            this.cboBinding.Size = new System.Drawing.Size(79, 20);
            this.cboBinding.TabIndex = 5;
            // 
            // label64
            // 
            this.label64.Location = new System.Drawing.Point(9, 62);
            this.label64.Name = "label64";
            this.label64.Size = new System.Drawing.Size(107, 14);
            this.label64.TabIndex = 4;
            this.label64.Text = "Binding";
            // 
            // cboJobControl
            // 
            this.cboJobControl.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboJobControl.Items.AddRange(new object[] {
            "None",
            "Include and Continue",
            "Include and Stop",
            "Exclude and Continue",
            "Exclude and Stop"});
            this.cboJobControl.Location = new System.Drawing.Point(172, 13);
            this.cboJobControl.Name = "cboJobControl";
            this.cboJobControl.Size = new System.Drawing.Size(149, 20);
            this.cboJobControl.TabIndex = 1;
            // 
            // label63
            // 
            this.label63.Location = new System.Drawing.Point(9, 16);
            this.label63.Name = "label63";
            this.label63.Size = new System.Drawing.Size(107, 14);
            this.label63.TabIndex = 0;
            this.label63.Text = "JobControl";
            // 
            // cboJobControlMode
            // 
            this.cboJobControlMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboJobControlMode.Items.AddRange(new object[] {
            "Special Document",
            "Patch Code Document"});
            this.cboJobControlMode.Location = new System.Drawing.Point(172, 36);
            this.cboJobControlMode.Name = "cboJobControlMode";
            this.cboJobControlMode.Size = new System.Drawing.Size(149, 20);
            this.cboJobControlMode.TabIndex = 3;
            // 
            // label118
            // 
            this.label118.Location = new System.Drawing.Point(9, 39);
            this.label118.Name = "label118";
            this.label118.Size = new System.Drawing.Size(107, 14);
            this.label118.TabIndex = 2;
            this.label118.Text = "JobControlMode";
            // 
            // txtBlankPageSkip
            // 
            this.txtBlankPageSkip.Location = new System.Drawing.Point(172, 153);
            this.txtBlankPageSkip.MaxLength = 2;
            this.txtBlankPageSkip.Name = "txtBlankPageSkip";
            this.txtBlankPageSkip.Size = new System.Drawing.Size(54, 19);
            this.txtBlankPageSkip.TabIndex = 14;
            this.txtBlankPageSkip.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtBlankPageSkip.TextChanged += new System.EventHandler(this.txtBlankPageSkip_TextChanged);
            // 
            // label119
            // 
            this.label119.Location = new System.Drawing.Point(232, 156);
            this.label119.Name = "label119";
            this.label119.Size = new System.Drawing.Size(62, 14);
            this.label119.TabIndex = 15;
            this.label119.Text = "(0-11)";
            // 
            // label120
            // 
            this.label120.Location = new System.Drawing.Point(9, 156);
            this.label120.Name = "label120";
            this.label120.Size = new System.Drawing.Size(99, 14);
            this.label120.TabIndex = 13;
            this.label120.Text = "BlankPageSkip";
            // 
            // label161
            // 
            this.label161.Location = new System.Drawing.Point(10, 311);
            this.label161.Name = "label161";
            this.label161.Size = new System.Drawing.Size(99, 14);
            this.label161.TabIndex = 30;
            this.label161.Text = "CropPriority";
            // 
            // label162
            // 
            this.label162.Location = new System.Drawing.Point(10, 288);
            this.label162.Name = "label162";
            this.label162.Size = new System.Drawing.Size(99, 14);
            this.label162.TabIndex = 28;
            this.label162.Text = "AIQCNotice";
            // 
            // label163
            // 
            this.label163.Location = new System.Drawing.Point(10, 333);
            this.label163.Name = "label163";
            this.label163.Size = new System.Drawing.Size(121, 14);
            this.label163.TabIndex = 32;
            this.label163.Text = "Deskew";
            // 
            // cboDeskew
            // 
            this.cboDeskew.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboDeskew.Items.AddRange(new object[] {
            "Edge",
            "Documents",
            "OFF"});
            this.cboDeskew.Location = new System.Drawing.Point(172, 327);
            this.cboDeskew.MaxDropDownItems = 3;
            this.cboDeskew.Name = "cboDeskew";
            this.cboDeskew.Size = new System.Drawing.Size(97, 20);
            this.cboDeskew.TabIndex = 33;
            // 
            // label166
            // 
            this.label166.Location = new System.Drawing.Point(11, 375);
            this.label166.Name = "label166";
            this.label166.Size = new System.Drawing.Size(150, 16);
            this.label166.TabIndex = 37;
            this.label166.Text = "MultiFeedModeChangeSize";
            // 
            // label168
            // 
            this.label168.Location = new System.Drawing.Point(221, 354);
            this.label168.Name = "label168";
            this.label168.Size = new System.Drawing.Size(62, 16);
            this.label168.TabIndex = 36;
            this.label168.Text = "(-5.0 - 5.0)";
            // 
            // Endorser
            // 
            this.Endorser.Controls.Add(this.groupBox6);
            this.Endorser.Controls.Add(this.groupBox14);
            this.Endorser.Location = new System.Drawing.Point(4, 22);
            this.Endorser.Name = "Endorser";
            this.Endorser.Size = new System.Drawing.Size(728, 453);
            this.Endorser.TabIndex = 6;
            this.Endorser.Text = "Endorser";
            // 
            // groupBox6
            // 
            this.groupBox6.Controls.Add(this.cboEndorserFont);
            this.groupBox6.Controls.Add(this.label117);
            this.groupBox6.Controls.Add(this.cboEndorserCountDirection);
            this.groupBox6.Controls.Add(this.label62);
            this.groupBox6.Controls.Add(this.cboEndorserCountStep);
            this.groupBox6.Controls.Add(this.label61);
            this.groupBox6.Controls.Add(this.cboEndorserDirection);
            this.groupBox6.Controls.Add(this.label60);
            this.groupBox6.Controls.Add(this.txtEndorserOffset);
            this.groupBox6.Controls.Add(this.label59);
            this.groupBox6.Controls.Add(this.label58);
            this.groupBox6.Controls.Add(this.txtEndorserString);
            this.groupBox6.Controls.Add(this.label57);
            this.groupBox6.Controls.Add(this.label56);
            this.groupBox6.Controls.Add(this.txtEndorserCounter);
            this.groupBox6.Controls.Add(this.label55);
            this.groupBox6.Controls.Add(this.chkEndorser);
            this.groupBox6.Controls.Add(this.label54);
            this.groupBox6.Controls.Add(this.chkSynchronizationDigitalEndorser);
            this.groupBox6.Controls.Add(this.label144);
            this.groupBox6.Location = new System.Drawing.Point(9, 7);
            this.groupBox6.Name = "groupBox6";
            this.groupBox6.Size = new System.Drawing.Size(711, 228);
            this.groupBox6.TabIndex = 1;
            this.groupBox6.TabStop = false;
            // 
            // cboEndorserFont
            // 
            this.cboEndorserFont.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboEndorserFont.Items.AddRange(new object[] {
            "Horizontal",
            "Vertical",
            "Horizontal-Narrow",
            "Horizontal-Bold",
            "Vertical-Bold"});
            this.cboEndorserFont.Location = new System.Drawing.Point(192, 173);
            this.cboEndorserFont.Name = "cboEndorserFont";
            this.cboEndorserFont.Size = new System.Drawing.Size(152, 20);
            this.cboEndorserFont.TabIndex = 17;
            // 
            // label117
            // 
            this.label117.Location = new System.Drawing.Point(8, 177);
            this.label117.Name = "label117";
            this.label117.Size = new System.Drawing.Size(99, 14);
            this.label117.TabIndex = 16;
            this.label117.Text = "EndorserFont";
            // 
            // cboEndorserCountDirection
            // 
            this.cboEndorserCountDirection.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboEndorserCountDirection.Items.AddRange(new object[] {
            "Add",
            "Del"});
            this.cboEndorserCountDirection.Location = new System.Drawing.Point(192, 150);
            this.cboEndorserCountDirection.Name = "cboEndorserCountDirection";
            this.cboEndorserCountDirection.Size = new System.Drawing.Size(65, 20);
            this.cboEndorserCountDirection.TabIndex = 15;
            // 
            // label62
            // 
            this.label62.Location = new System.Drawing.Point(8, 153);
            this.label62.Name = "label62";
            this.label62.Size = new System.Drawing.Size(130, 14);
            this.label62.TabIndex = 14;
            this.label62.Text = "EndorserCountDirection";
            // 
            // cboEndorserCountStep
            // 
            this.cboEndorserCountStep.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboEndorserCountStep.Items.AddRange(new object[] {
            "None",
            "1Step",
            "2Step"});
            this.cboEndorserCountStep.Location = new System.Drawing.Point(192, 127);
            this.cboEndorserCountStep.Name = "cboEndorserCountStep";
            this.cboEndorserCountStep.Size = new System.Drawing.Size(79, 20);
            this.cboEndorserCountStep.TabIndex = 13;
            // 
            // label61
            // 
            this.label61.Location = new System.Drawing.Point(8, 130);
            this.label61.Name = "label61";
            this.label61.Size = new System.Drawing.Size(107, 14);
            this.label61.TabIndex = 12;
            this.label61.Text = "EndorserCountStep";
            // 
            // cboEndorserDirection
            // 
            this.cboEndorserDirection.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboEndorserDirection.DropDownWidth = 79;
            this.cboEndorserDirection.Items.AddRange(new object[] {
            "ToUnder",
            "ToUpper"});
            this.cboEndorserDirection.Location = new System.Drawing.Point(192, 104);
            this.cboEndorserDirection.Name = "cboEndorserDirection";
            this.cboEndorserDirection.Size = new System.Drawing.Size(79, 20);
            this.cboEndorserDirection.TabIndex = 11;
            // 
            // label60
            // 
            this.label60.Location = new System.Drawing.Point(8, 107);
            this.label60.Name = "label60";
            this.label60.Size = new System.Drawing.Size(99, 14);
            this.label60.TabIndex = 10;
            this.label60.Text = "EndorserDirection";
            // 
            // txtEndorserOffset
            // 
            this.txtEndorserOffset.Location = new System.Drawing.Point(192, 81);
            this.txtEndorserOffset.MaxLength = 8;
            this.txtEndorserOffset.Name = "txtEndorserOffset";
            this.txtEndorserOffset.Size = new System.Drawing.Size(54, 19);
            this.txtEndorserOffset.TabIndex = 8;
            this.txtEndorserOffset.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtEndorserOffset.TextChanged += new System.EventHandler(this.txtEndorserOffset_TextChanged);
            // 
            // label59
            // 
            this.label59.Location = new System.Drawing.Point(8, 84);
            this.label59.Name = "label59";
            this.label59.Size = new System.Drawing.Size(99, 14);
            this.label59.TabIndex = 7;
            this.label59.Text = "EndorserOffset";
            // 
            // label58
            // 
            this.label58.Location = new System.Drawing.Point(256, 85);
            this.label58.Name = "label58";
            this.label58.Size = new System.Drawing.Size(36, 16);
            this.label58.TabIndex = 9;
            this.label58.Text = "inch";
            // 
            // txtEndorserString
            // 
            this.txtEndorserString.Location = new System.Drawing.Point(192, 58);
            this.txtEndorserString.MaxLength = 35;
            this.txtEndorserString.Name = "txtEndorserString";
            this.txtEndorserString.Size = new System.Drawing.Size(415, 19);
            this.txtEndorserString.TabIndex = 6;
            // 
            // label57
            // 
            this.label57.Location = new System.Drawing.Point(8, 61);
            this.label57.Name = "label57";
            this.label57.Size = new System.Drawing.Size(99, 14);
            this.label57.TabIndex = 5;
            this.label57.Text = "EndorserString";
            // 
            // label56
            // 
            this.label56.Location = new System.Drawing.Point(256, 39);
            this.label56.Name = "label56";
            this.label56.Size = new System.Drawing.Size(113, 14);
            this.label56.TabIndex = 4;
            this.label56.Text = "(-1, 0-99999999)";
            // 
            // txtEndorserCounter
            // 
            this.txtEndorserCounter.Location = new System.Drawing.Point(192, 35);
            this.txtEndorserCounter.MaxLength = 8;
            this.txtEndorserCounter.Name = "txtEndorserCounter";
            this.txtEndorserCounter.Size = new System.Drawing.Size(54, 19);
            this.txtEndorserCounter.TabIndex = 3;
            this.txtEndorserCounter.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtEndorserCounter.TextChanged += new System.EventHandler(this.txtEndorserCounter_TextChanged);
            // 
            // label55
            // 
            this.label55.Location = new System.Drawing.Point(8, 38);
            this.label55.Name = "label55";
            this.label55.Size = new System.Drawing.Size(99, 14);
            this.label55.TabIndex = 2;
            this.label55.Text = "EndorserCounter";
            // 
            // chkEndorser
            // 
            this.chkEndorser.Location = new System.Drawing.Point(192, 15);
            this.chkEndorser.Name = "chkEndorser";
            this.chkEndorser.Size = new System.Drawing.Size(18, 16);
            this.chkEndorser.TabIndex = 1;
            this.chkEndorser.CheckedChanged += new System.EventHandler(this.chkEndorser_CheckedChanged);
            // 
            // label54
            // 
            this.label54.Location = new System.Drawing.Point(8, 17);
            this.label54.Name = "label54";
            this.label54.Size = new System.Drawing.Size(99, 14);
            this.label54.TabIndex = 0;
            this.label54.Text = "Endorser";
            // 
            // chkSynchronizationDigitalEndorser
            // 
            this.chkSynchronizationDigitalEndorser.Location = new System.Drawing.Point(192, 200);
            this.chkSynchronizationDigitalEndorser.Name = "chkSynchronizationDigitalEndorser";
            this.chkSynchronizationDigitalEndorser.Size = new System.Drawing.Size(18, 16);
            this.chkSynchronizationDigitalEndorser.TabIndex = 19;
            // 
            // label144
            // 
            this.label144.Location = new System.Drawing.Point(8, 200);
            this.label144.Name = "label144";
            this.label144.Size = new System.Drawing.Size(184, 14);
            this.label144.TabIndex = 18;
            this.label144.Text = "SynchronizationDigitalEndorser";
            // 
            // groupBox14
            // 
            this.groupBox14.Controls.Add(this.cboDigitalEndorserCountDirection);
            this.groupBox14.Controls.Add(this.label146);
            this.groupBox14.Controls.Add(this.cboDigitalEndorserCountStep);
            this.groupBox14.Controls.Add(this.label147);
            this.groupBox14.Controls.Add(this.txtDigitalEndorserXOffset);
            this.groupBox14.Controls.Add(this.label149);
            this.groupBox14.Controls.Add(this.label150);
            this.groupBox14.Controls.Add(this.txtDigitalEndorserString);
            this.groupBox14.Controls.Add(this.label151);
            this.groupBox14.Controls.Add(this.label152);
            this.groupBox14.Controls.Add(this.txtDigitalEndorserCounter);
            this.groupBox14.Controls.Add(this.label153);
            this.groupBox14.Controls.Add(this.chkDigitalEndorser);
            this.groupBox14.Controls.Add(this.label154);
            this.groupBox14.Controls.Add(this.label145);
            this.groupBox14.Controls.Add(this.label148);
            this.groupBox14.Controls.Add(this.txtDigitalEndorserYOffset);
            this.groupBox14.Location = new System.Drawing.Point(9, 238);
            this.groupBox14.Name = "groupBox14";
            this.groupBox14.Size = new System.Drawing.Size(711, 185);
            this.groupBox14.TabIndex = 1;
            this.groupBox14.TabStop = false;
            // 
            // cboDigitalEndorserCountDirection
            // 
            this.cboDigitalEndorserCountDirection.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboDigitalEndorserCountDirection.Items.AddRange(new object[] {
            "Add",
            "Del"});
            this.cboDigitalEndorserCountDirection.Location = new System.Drawing.Point(192, 150);
            this.cboDigitalEndorserCountDirection.Name = "cboDigitalEndorserCountDirection";
            this.cboDigitalEndorserCountDirection.Size = new System.Drawing.Size(65, 20);
            this.cboDigitalEndorserCountDirection.TabIndex = 16;
            // 
            // label146
            // 
            this.label146.Location = new System.Drawing.Point(8, 153);
            this.label146.Name = "label146";
            this.label146.Size = new System.Drawing.Size(176, 14);
            this.label146.TabIndex = 15;
            this.label146.Text = "DigitalEndorserCountDirection";
            // 
            // cboDigitalEndorserCountStep
            // 
            this.cboDigitalEndorserCountStep.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboDigitalEndorserCountStep.Items.AddRange(new object[] {
            "None",
            "1Step",
            "2Step"});
            this.cboDigitalEndorserCountStep.Location = new System.Drawing.Point(192, 127);
            this.cboDigitalEndorserCountStep.Name = "cboDigitalEndorserCountStep";
            this.cboDigitalEndorserCountStep.Size = new System.Drawing.Size(79, 20);
            this.cboDigitalEndorserCountStep.TabIndex = 14;
            // 
            // label147
            // 
            this.label147.Location = new System.Drawing.Point(8, 130);
            this.label147.Name = "label147";
            this.label147.Size = new System.Drawing.Size(168, 14);
            this.label147.TabIndex = 13;
            this.label147.Text = "DigitalEndorserCountStep";
            // 
            // txtDigitalEndorserXOffset
            // 
            this.txtDigitalEndorserXOffset.Location = new System.Drawing.Point(192, 81);
            this.txtDigitalEndorserXOffset.MaxLength = 8;
            this.txtDigitalEndorserXOffset.Name = "txtDigitalEndorserXOffset";
            this.txtDigitalEndorserXOffset.Size = new System.Drawing.Size(54, 19);
            this.txtDigitalEndorserXOffset.TabIndex = 8;
            this.txtDigitalEndorserXOffset.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtDigitalEndorserXOffset.TextChanged += new System.EventHandler(this.txtDigitalEndorserXOffset_TextChanged);
            // 
            // label149
            // 
            this.label149.Location = new System.Drawing.Point(8, 84);
            this.label149.Name = "label149";
            this.label149.Size = new System.Drawing.Size(168, 14);
            this.label149.TabIndex = 7;
            this.label149.Text = "DigitalEndorserXOffset";
            // 
            // label150
            // 
            this.label150.Location = new System.Drawing.Point(256, 85);
            this.label150.Name = "label150";
            this.label150.Size = new System.Drawing.Size(36, 16);
            this.label150.TabIndex = 9;
            this.label150.Text = "inch";
            // 
            // txtDigitalEndorserString
            // 
            this.txtDigitalEndorserString.Location = new System.Drawing.Point(192, 58);
            this.txtDigitalEndorserString.MaxLength = 35;
            this.txtDigitalEndorserString.Name = "txtDigitalEndorserString";
            this.txtDigitalEndorserString.Size = new System.Drawing.Size(415, 19);
            this.txtDigitalEndorserString.TabIndex = 6;
            // 
            // label151
            // 
            this.label151.Location = new System.Drawing.Point(8, 61);
            this.label151.Name = "label151";
            this.label151.Size = new System.Drawing.Size(128, 14);
            this.label151.TabIndex = 5;
            this.label151.Text = "DigitalEndorserString";
            // 
            // label152
            // 
            this.label152.Location = new System.Drawing.Point(256, 39);
            this.label152.Name = "label152";
            this.label152.Size = new System.Drawing.Size(113, 14);
            this.label152.TabIndex = 4;
            this.label152.Text = "(-1, 0-99999999)";
            // 
            // txtDigitalEndorserCounter
            // 
            this.txtDigitalEndorserCounter.Location = new System.Drawing.Point(192, 35);
            this.txtDigitalEndorserCounter.MaxLength = 8;
            this.txtDigitalEndorserCounter.Name = "txtDigitalEndorserCounter";
            this.txtDigitalEndorserCounter.Size = new System.Drawing.Size(54, 19);
            this.txtDigitalEndorserCounter.TabIndex = 3;
            this.txtDigitalEndorserCounter.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtDigitalEndorserCounter.TextChanged += new System.EventHandler(this.txtDigitalEndorserCounter_TextChanged);
            // 
            // label153
            // 
            this.label153.Location = new System.Drawing.Point(8, 38);
            this.label153.Name = "label153";
            this.label153.Size = new System.Drawing.Size(136, 14);
            this.label153.TabIndex = 2;
            this.label153.Text = "DigitalEndorserCounter";
            // 
            // chkDigitalEndorser
            // 
            this.chkDigitalEndorser.Location = new System.Drawing.Point(192, 15);
            this.chkDigitalEndorser.Name = "chkDigitalEndorser";
            this.chkDigitalEndorser.Size = new System.Drawing.Size(18, 16);
            this.chkDigitalEndorser.TabIndex = 1;
            this.chkDigitalEndorser.CheckedChanged += new System.EventHandler(this.chkDigitalEndorser_CheckedChanged);
            // 
            // label154
            // 
            this.label154.Location = new System.Drawing.Point(8, 17);
            this.label154.Name = "label154";
            this.label154.Size = new System.Drawing.Size(99, 14);
            this.label154.TabIndex = 0;
            this.label154.Text = "DigitalEndorser";
            // 
            // label145
            // 
            this.label145.Location = new System.Drawing.Point(256, 107);
            this.label145.Name = "label145";
            this.label145.Size = new System.Drawing.Size(36, 16);
            this.label145.TabIndex = 12;
            this.label145.Text = "inch";
            // 
            // label148
            // 
            this.label148.Location = new System.Drawing.Point(8, 107);
            this.label148.Name = "label148";
            this.label148.Size = new System.Drawing.Size(136, 14);
            this.label148.TabIndex = 10;
            this.label148.Text = "DigitalEndorserYOffset";
            // 
            // txtDigitalEndorserYOffset
            // 
            this.txtDigitalEndorserYOffset.Location = new System.Drawing.Point(192, 104);
            this.txtDigitalEndorserYOffset.MaxLength = 8;
            this.txtDigitalEndorserYOffset.Name = "txtDigitalEndorserYOffset";
            this.txtDigitalEndorserYOffset.Size = new System.Drawing.Size(54, 19);
            this.txtDigitalEndorserYOffset.TabIndex = 11;
            this.txtDigitalEndorserYOffset.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtDigitalEndorserYOffset.TextChanged += new System.EventHandler(this.txtDigitalEndorserYOffset_TextChanged);
            // 
            // Barcode
            // 
            this.Barcode.Controls.Add(this.groupBox8);
            this.Barcode.Location = new System.Drawing.Point(4, 22);
            this.Barcode.Name = "Barcode";
            this.Barcode.Size = new System.Drawing.Size(728, 453);
            this.Barcode.TabIndex = 3;
            this.Barcode.Text = "Barcode";
            // 
            // groupBox8
            // 
            this.groupBox8.Controls.Add(this.label159);
            this.groupBox8.Controls.Add(this.txtBarcodeMaxSearchPriorities);
            this.groupBox8.Controls.Add(this.label158);
            this.groupBox8.Controls.Add(this.groupBox9);
            this.groupBox8.Controls.Add(this.label82);
            this.groupBox8.Controls.Add(this.txtBarcodeRegionLeft);
            this.groupBox8.Controls.Add(this.cboBarcodeDirection);
            this.groupBox8.Controls.Add(this.chkBarcodeDetection);
            this.groupBox8.Controls.Add(this.label81);
            this.groupBox8.Controls.Add(this.label80);
            this.groupBox8.Controls.Add(this.label79);
            this.groupBox8.Controls.Add(this.label78);
            this.groupBox8.Controls.Add(this.label83);
            this.groupBox8.Controls.Add(this.txtBarcodeRegionWidth);
            this.groupBox8.Controls.Add(this.label84);
            this.groupBox8.Controls.Add(this.label85);
            this.groupBox8.Controls.Add(this.label86);
            this.groupBox8.Controls.Add(this.label87);
            this.groupBox8.Controls.Add(this.txtBarcodeRegionLength);
            this.groupBox8.Controls.Add(this.txtBarcodeRegionTop);
            this.groupBox8.Location = new System.Drawing.Point(8, 8);
            this.groupBox8.Name = "groupBox8";
            this.groupBox8.Size = new System.Drawing.Size(711, 277);
            this.groupBox8.TabIndex = 0;
            this.groupBox8.TabStop = false;
            // 
            // label159
            // 
            this.label159.Location = new System.Drawing.Point(206, 109);
            this.label159.Name = "label159";
            this.label159.Size = new System.Drawing.Size(43, 16);
            this.label159.TabIndex = 18;
            this.label159.Text = "(1-20)";
            // 
            // txtBarcodeMaxSearchPriorities
            // 
            this.txtBarcodeMaxSearchPriorities.Location = new System.Drawing.Point(164, 105);
            this.txtBarcodeMaxSearchPriorities.MaxLength = 2;
            this.txtBarcodeMaxSearchPriorities.Name = "txtBarcodeMaxSearchPriorities";
            this.txtBarcodeMaxSearchPriorities.Size = new System.Drawing.Size(36, 19);
            this.txtBarcodeMaxSearchPriorities.TabIndex = 17;
            this.txtBarcodeMaxSearchPriorities.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtBarcodeMaxSearchPriorities.TextChanged += new System.EventHandler(this.txtBarcodeMaxSearchPriorities_TextChanged);
            // 
            // label158
            // 
            this.label158.Location = new System.Drawing.Point(8, 109);
            this.label158.Name = "label158";
            this.label158.Size = new System.Drawing.Size(155, 14);
            this.label158.TabIndex = 16;
            this.label158.Text = "BarcodeMaxSearchPriorities ";
            // 
            // groupBox9
            // 
            this.groupBox9.Controls.Add(this.chkDataMatrix);
            this.groupBox9.Controls.Add(this.label165);
            this.groupBox9.Controls.Add(this.label88);
            this.groupBox9.Controls.Add(this.label89);
            this.groupBox9.Controls.Add(this.chkEAN8);
            this.groupBox9.Controls.Add(this.label90);
            this.groupBox9.Controls.Add(this.chkCode128);
            this.groupBox9.Controls.Add(this.label91);
            this.groupBox9.Controls.Add(this.chkCodabar);
            this.groupBox9.Controls.Add(this.label92);
            this.groupBox9.Controls.Add(this.label93);
            this.groupBox9.Controls.Add(this.label94);
            this.groupBox9.Controls.Add(this.chkITF);
            this.groupBox9.Controls.Add(this.chkPDF417);
            this.groupBox9.Controls.Add(this.chkEAN13);
            this.groupBox9.Controls.Add(this.chkQRCode);
            this.groupBox9.Controls.Add(this.chkUPCA);
            this.groupBox9.Controls.Add(this.label95);
            this.groupBox9.Controls.Add(this.label96);
            this.groupBox9.Controls.Add(this.label97);
            this.groupBox9.Controls.Add(this.chkCode3of9);
            this.groupBox9.Location = new System.Drawing.Point(7, 129);
            this.groupBox9.Name = "groupBox9";
            this.groupBox9.Size = new System.Drawing.Size(696, 131);
            this.groupBox9.TabIndex = 19;
            this.groupBox9.TabStop = false;
            // 
            // chkDataMatrix
            // 
            this.chkDataMatrix.AutoSize = true;
            this.chkDataMatrix.Location = new System.Drawing.Point(124, 96);
            this.chkDataMatrix.Name = "chkDataMatrix";
            this.chkDataMatrix.Size = new System.Drawing.Size(15, 14);
            this.chkDataMatrix.TabIndex = 20;
            this.chkDataMatrix.UseVisualStyleBackColor = true;
            // 
            // label165
            // 
            this.label165.AutoSize = true;
            this.label165.Location = new System.Drawing.Point(30, 96);
            this.label165.Name = "label165";
            this.label165.Size = new System.Drawing.Size(65, 12);
            this.label165.TabIndex = 19;
            this.label165.Text = "Data Matrix";
            // 
            // label88
            // 
            this.label88.Location = new System.Drawing.Point(2, 15);
            this.label88.Name = "label88";
            this.label88.Size = new System.Drawing.Size(113, 14);
            this.label88.TabIndex = 0;
            this.label88.Text = "BarcodeType";
            // 
            // label89
            // 
            this.label89.Location = new System.Drawing.Point(30, 37);
            this.label89.Name = "label89";
            this.label89.Size = new System.Drawing.Size(84, 14);
            this.label89.TabIndex = 1;
            this.label89.Text = "EAN 8";
            // 
            // chkEAN8
            // 
            this.chkEAN8.Location = new System.Drawing.Point(124, 33);
            this.chkEAN8.Name = "chkEAN8";
            this.chkEAN8.Size = new System.Drawing.Size(23, 24);
            this.chkEAN8.TabIndex = 2;
            // 
            // label90
            // 
            this.label90.Location = new System.Drawing.Point(30, 57);
            this.label90.Name = "label90";
            this.label90.Size = new System.Drawing.Size(84, 14);
            this.label90.TabIndex = 7;
            this.label90.Text = "Code 128";
            // 
            // chkCode128
            // 
            this.chkCode128.Location = new System.Drawing.Point(124, 53);
            this.chkCode128.Name = "chkCode128";
            this.chkCode128.Size = new System.Drawing.Size(23, 24);
            this.chkCode128.TabIndex = 8;
            // 
            // label91
            // 
            this.label91.Location = new System.Drawing.Point(30, 76);
            this.label91.Name = "label91";
            this.label91.Size = new System.Drawing.Size(84, 14);
            this.label91.TabIndex = 13;
            this.label91.Text = "Codabar";
            // 
            // chkCodabar
            // 
            this.chkCodabar.Location = new System.Drawing.Point(124, 72);
            this.chkCodabar.Name = "chkCodabar";
            this.chkCodabar.Size = new System.Drawing.Size(23, 24);
            this.chkCodabar.TabIndex = 14;
            // 
            // label92
            // 
            this.label92.Location = new System.Drawing.Point(159, 37);
            this.label92.Name = "label92";
            this.label92.Size = new System.Drawing.Size(84, 14);
            this.label92.TabIndex = 3;
            this.label92.Text = "EAN 13";
            // 
            // label93
            // 
            this.label93.Location = new System.Drawing.Point(159, 57);
            this.label93.Name = "label93";
            this.label93.Size = new System.Drawing.Size(84, 14);
            this.label93.TabIndex = 9;
            this.label93.Text = "ITF";
            // 
            // label94
            // 
            this.label94.Location = new System.Drawing.Point(159, 76);
            this.label94.Name = "label94";
            this.label94.Size = new System.Drawing.Size(84, 14);
            this.label94.TabIndex = 15;
            this.label94.Text = "PDF417";
            // 
            // chkITF
            // 
            this.chkITF.Location = new System.Drawing.Point(253, 53);
            this.chkITF.Name = "chkITF";
            this.chkITF.Size = new System.Drawing.Size(23, 24);
            this.chkITF.TabIndex = 10;
            // 
            // chkPDF417
            // 
            this.chkPDF417.Location = new System.Drawing.Point(253, 72);
            this.chkPDF417.Name = "chkPDF417";
            this.chkPDF417.Size = new System.Drawing.Size(23, 24);
            this.chkPDF417.TabIndex = 16;
            // 
            // chkEAN13
            // 
            this.chkEAN13.Location = new System.Drawing.Point(253, 33);
            this.chkEAN13.Name = "chkEAN13";
            this.chkEAN13.Size = new System.Drawing.Size(23, 24);
            this.chkEAN13.TabIndex = 4;
            // 
            // chkQRCode
            // 
            this.chkQRCode.Location = new System.Drawing.Point(389, 72);
            this.chkQRCode.Name = "chkQRCode";
            this.chkQRCode.Size = new System.Drawing.Size(23, 24);
            this.chkQRCode.TabIndex = 18;
            // 
            // chkUPCA
            // 
            this.chkUPCA.Location = new System.Drawing.Point(389, 53);
            this.chkUPCA.Name = "chkUPCA";
            this.chkUPCA.Size = new System.Drawing.Size(23, 24);
            this.chkUPCA.TabIndex = 12;
            // 
            // label95
            // 
            this.label95.Location = new System.Drawing.Point(295, 76);
            this.label95.Name = "label95";
            this.label95.Size = new System.Drawing.Size(84, 14);
            this.label95.TabIndex = 17;
            this.label95.Text = "QR Code";
            // 
            // label96
            // 
            this.label96.Location = new System.Drawing.Point(295, 57);
            this.label96.Name = "label96";
            this.label96.Size = new System.Drawing.Size(84, 14);
            this.label96.TabIndex = 11;
            this.label96.Text = "UPC-A";
            // 
            // label97
            // 
            this.label97.Location = new System.Drawing.Point(295, 37);
            this.label97.Name = "label97";
            this.label97.Size = new System.Drawing.Size(84, 14);
            this.label97.TabIndex = 5;
            this.label97.Text = "Code 3 of 9";
            // 
            // chkCode3of9
            // 
            this.chkCode3of9.Location = new System.Drawing.Point(389, 33);
            this.chkCode3of9.Name = "chkCode3of9";
            this.chkCode3of9.Size = new System.Drawing.Size(23, 24);
            this.chkCode3of9.TabIndex = 6;
            // 
            // label82
            // 
            this.label82.Location = new System.Drawing.Point(226, 63);
            this.label82.Name = "label82";
            this.label82.Size = new System.Drawing.Size(36, 16);
            this.label82.TabIndex = 6;
            this.label82.Text = "inch";
            // 
            // txtBarcodeRegionLeft
            // 
            this.txtBarcodeRegionLeft.Location = new System.Drawing.Point(164, 58);
            this.txtBarcodeRegionLeft.MaxLength = 8;
            this.txtBarcodeRegionLeft.Name = "txtBarcodeRegionLeft";
            this.txtBarcodeRegionLeft.Size = new System.Drawing.Size(54, 19);
            this.txtBarcodeRegionLeft.TabIndex = 5;
            this.txtBarcodeRegionLeft.TextChanged += new System.EventHandler(this.txtBarcodeRegionLeft_TextChanged);
            // 
            // cboBarcodeDirection
            // 
            this.cboBarcodeDirection.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboBarcodeDirection.Items.AddRange(new object[] {
            "Horizontal",
            "Vertical",
            "Horizontal & Vertical"});
            this.cboBarcodeDirection.Location = new System.Drawing.Point(164, 35);
            this.cboBarcodeDirection.Name = "cboBarcodeDirection";
            this.cboBarcodeDirection.Size = new System.Drawing.Size(152, 20);
            this.cboBarcodeDirection.TabIndex = 3;
            // 
            // chkBarcodeDetection
            // 
            this.chkBarcodeDetection.Location = new System.Drawing.Point(164, 13);
            this.chkBarcodeDetection.Name = "chkBarcodeDetection";
            this.chkBarcodeDetection.Size = new System.Drawing.Size(23, 24);
            this.chkBarcodeDetection.TabIndex = 1;
            this.chkBarcodeDetection.CheckedChanged += new System.EventHandler(this.chkBarcodeDetection_CheckedChanged);
            // 
            // label81
            // 
            this.label81.Location = new System.Drawing.Point(8, 86);
            this.label81.Name = "label81";
            this.label81.Size = new System.Drawing.Size(113, 14);
            this.label81.TabIndex = 10;
            this.label81.Text = "BarcodeRegionWidth";
            // 
            // label80
            // 
            this.label80.Location = new System.Drawing.Point(8, 63);
            this.label80.Name = "label80";
            this.label80.Size = new System.Drawing.Size(130, 14);
            this.label80.TabIndex = 4;
            this.label80.Text = "BarcodeRegionLeft";
            // 
            // label79
            // 
            this.label79.Location = new System.Drawing.Point(8, 40);
            this.label79.Name = "label79";
            this.label79.Size = new System.Drawing.Size(99, 14);
            this.label79.TabIndex = 2;
            this.label79.Text = "BarcodeDirection";
            // 
            // label78
            // 
            this.label78.Location = new System.Drawing.Point(8, 17);
            this.label78.Name = "label78";
            this.label78.Size = new System.Drawing.Size(99, 14);
            this.label78.TabIndex = 0;
            this.label78.Text = "BarcodeDetection";
            // 
            // label83
            // 
            this.label83.Location = new System.Drawing.Point(226, 84);
            this.label83.Name = "label83";
            this.label83.Size = new System.Drawing.Size(36, 16);
            this.label83.TabIndex = 12;
            this.label83.Text = "inch";
            // 
            // txtBarcodeRegionWidth
            // 
            this.txtBarcodeRegionWidth.Location = new System.Drawing.Point(164, 81);
            this.txtBarcodeRegionWidth.MaxLength = 8;
            this.txtBarcodeRegionWidth.Name = "txtBarcodeRegionWidth";
            this.txtBarcodeRegionWidth.Size = new System.Drawing.Size(54, 19);
            this.txtBarcodeRegionWidth.TabIndex = 11;
            this.txtBarcodeRegionWidth.TextChanged += new System.EventHandler(this.txtBarcodeRegionWidth_TextChanged);
            // 
            // label84
            // 
            this.label84.Location = new System.Drawing.Point(271, 86);
            this.label84.Name = "label84";
            this.label84.Size = new System.Drawing.Size(118, 14);
            this.label84.TabIndex = 13;
            this.label84.Text = "BarcodeRegionLength";
            // 
            // label85
            // 
            this.label85.Location = new System.Drawing.Point(271, 63);
            this.label85.Name = "label85";
            this.label85.Size = new System.Drawing.Size(111, 14);
            this.label85.TabIndex = 7;
            this.label85.Text = "BarcodeRegionTop";
            // 
            // label86
            // 
            this.label86.Location = new System.Drawing.Point(453, 63);
            this.label86.Name = "label86";
            this.label86.Size = new System.Drawing.Size(36, 16);
            this.label86.TabIndex = 9;
            this.label86.Text = "inch";
            // 
            // label87
            // 
            this.label87.Location = new System.Drawing.Point(453, 84);
            this.label87.Name = "label87";
            this.label87.Size = new System.Drawing.Size(36, 16);
            this.label87.TabIndex = 15;
            this.label87.Text = "inch";
            // 
            // txtBarcodeRegionLength
            // 
            this.txtBarcodeRegionLength.Location = new System.Drawing.Point(393, 83);
            this.txtBarcodeRegionLength.MaxLength = 8;
            this.txtBarcodeRegionLength.Name = "txtBarcodeRegionLength";
            this.txtBarcodeRegionLength.Size = new System.Drawing.Size(54, 19);
            this.txtBarcodeRegionLength.TabIndex = 14;
            this.txtBarcodeRegionLength.TextChanged += new System.EventHandler(this.txtBarcodeRegionLength_TextChanged);
            // 
            // txtBarcodeRegionTop
            // 
            this.txtBarcodeRegionTop.Location = new System.Drawing.Point(393, 60);
            this.txtBarcodeRegionTop.MaxLength = 8;
            this.txtBarcodeRegionTop.Name = "txtBarcodeRegionTop";
            this.txtBarcodeRegionTop.Size = new System.Drawing.Size(54, 19);
            this.txtBarcodeRegionTop.TabIndex = 8;
            this.txtBarcodeRegionTop.TextChanged += new System.EventHandler(this.txtBarcodeRegionTop_TextChanged);
            // 
            // PatchCode
            // 
            this.PatchCode.Controls.Add(this.groupBox10);
            this.PatchCode.Location = new System.Drawing.Point(4, 22);
            this.PatchCode.Name = "PatchCode";
            this.PatchCode.Size = new System.Drawing.Size(728, 453);
            this.PatchCode.TabIndex = 4;
            this.PatchCode.Text = "PatchCode";
            // 
            // groupBox10
            // 
            this.groupBox10.Controls.Add(this.groupBox11);
            this.groupBox10.Controls.Add(this.cboPatchCodeDirection);
            this.groupBox10.Controls.Add(this.chkPatchCodeDetection);
            this.groupBox10.Controls.Add(this.label98);
            this.groupBox10.Controls.Add(this.label99);
            this.groupBox10.Location = new System.Drawing.Point(8, 8);
            this.groupBox10.Name = "groupBox10";
            this.groupBox10.Size = new System.Drawing.Size(711, 142);
            this.groupBox10.TabIndex = 0;
            this.groupBox10.TabStop = false;
            // 
            // groupBox11
            // 
            this.groupBox11.Controls.Add(this.label100);
            this.groupBox11.Controls.Add(this.label101);
            this.groupBox11.Controls.Add(this.chkPatch1);
            this.groupBox11.Controls.Add(this.label102);
            this.groupBox11.Controls.Add(this.chkPatch4);
            this.groupBox11.Controls.Add(this.label103);
            this.groupBox11.Controls.Add(this.label104);
            this.groupBox11.Controls.Add(this.chkPatchT);
            this.groupBox11.Controls.Add(this.chkPatch2);
            this.groupBox11.Controls.Add(this.chkPatch6);
            this.groupBox11.Controls.Add(this.label105);
            this.groupBox11.Controls.Add(this.label106);
            this.groupBox11.Controls.Add(this.chkPatch3);
            this.groupBox11.Location = new System.Drawing.Point(6, 54);
            this.groupBox11.Name = "groupBox11";
            this.groupBox11.Size = new System.Drawing.Size(698, 79);
            this.groupBox11.TabIndex = 4;
            this.groupBox11.TabStop = false;
            // 
            // label100
            // 
            this.label100.Location = new System.Drawing.Point(3, 10);
            this.label100.Name = "label100";
            this.label100.Size = new System.Drawing.Size(113, 14);
            this.label100.TabIndex = 0;
            this.label100.Text = "PatchCodeType";
            // 
            // label101
            // 
            this.label101.Location = new System.Drawing.Point(31, 32);
            this.label101.Name = "label101";
            this.label101.Size = new System.Drawing.Size(84, 14);
            this.label101.TabIndex = 1;
            this.label101.Text = "Patch 1";
            // 
            // chkPatch1
            // 
            this.chkPatch1.Location = new System.Drawing.Point(125, 28);
            this.chkPatch1.Name = "chkPatch1";
            this.chkPatch1.Size = new System.Drawing.Size(23, 24);
            this.chkPatch1.TabIndex = 2;
            // 
            // label102
            // 
            this.label102.Location = new System.Drawing.Point(31, 52);
            this.label102.Name = "label102";
            this.label102.Size = new System.Drawing.Size(84, 14);
            this.label102.TabIndex = 7;
            this.label102.Text = "Patch 4";
            // 
            // chkPatch4
            // 
            this.chkPatch4.Location = new System.Drawing.Point(125, 48);
            this.chkPatch4.Name = "chkPatch4";
            this.chkPatch4.Size = new System.Drawing.Size(23, 24);
            this.chkPatch4.TabIndex = 8;
            // 
            // label103
            // 
            this.label103.Location = new System.Drawing.Point(160, 32);
            this.label103.Name = "label103";
            this.label103.Size = new System.Drawing.Size(84, 14);
            this.label103.TabIndex = 3;
            this.label103.Text = "Patch 2";
            // 
            // label104
            // 
            this.label104.Location = new System.Drawing.Point(160, 52);
            this.label104.Name = "label104";
            this.label104.Size = new System.Drawing.Size(84, 14);
            this.label104.TabIndex = 9;
            this.label104.Text = "Patch T";
            // 
            // chkPatchT
            // 
            this.chkPatchT.Location = new System.Drawing.Point(254, 48);
            this.chkPatchT.Name = "chkPatchT";
            this.chkPatchT.Size = new System.Drawing.Size(23, 24);
            this.chkPatchT.TabIndex = 10;
            // 
            // chkPatch2
            // 
            this.chkPatch2.Location = new System.Drawing.Point(254, 28);
            this.chkPatch2.Name = "chkPatch2";
            this.chkPatch2.Size = new System.Drawing.Size(23, 24);
            this.chkPatch2.TabIndex = 4;
            // 
            // chkPatch6
            // 
            this.chkPatch6.Location = new System.Drawing.Point(390, 48);
            this.chkPatch6.Name = "chkPatch6";
            this.chkPatch6.Size = new System.Drawing.Size(23, 24);
            this.chkPatch6.TabIndex = 12;
            // 
            // label105
            // 
            this.label105.Location = new System.Drawing.Point(296, 52);
            this.label105.Name = "label105";
            this.label105.Size = new System.Drawing.Size(84, 14);
            this.label105.TabIndex = 11;
            this.label105.Text = "Patch 6";
            // 
            // label106
            // 
            this.label106.Location = new System.Drawing.Point(296, 32);
            this.label106.Name = "label106";
            this.label106.Size = new System.Drawing.Size(84, 14);
            this.label106.TabIndex = 5;
            this.label106.Text = "Patch 3";
            // 
            // chkPatch3
            // 
            this.chkPatch3.Location = new System.Drawing.Point(390, 28);
            this.chkPatch3.Name = "chkPatch3";
            this.chkPatch3.Size = new System.Drawing.Size(23, 24);
            this.chkPatch3.TabIndex = 6;
            // 
            // cboPatchCodeDirection
            // 
            this.cboPatchCodeDirection.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboPatchCodeDirection.Items.AddRange(new object[] {
            "Horizontal",
            "Vertical",
            "Horizontal & Vertical"});
            this.cboPatchCodeDirection.Location = new System.Drawing.Point(128, 35);
            this.cboPatchCodeDirection.Name = "cboPatchCodeDirection";
            this.cboPatchCodeDirection.Size = new System.Drawing.Size(152, 20);
            this.cboPatchCodeDirection.TabIndex = 3;
            // 
            // chkPatchCodeDetection
            // 
            this.chkPatchCodeDetection.Location = new System.Drawing.Point(128, 13);
            this.chkPatchCodeDetection.Name = "chkPatchCodeDetection";
            this.chkPatchCodeDetection.Size = new System.Drawing.Size(23, 24);
            this.chkPatchCodeDetection.TabIndex = 1;
            // 
            // label98
            // 
            this.label98.Location = new System.Drawing.Point(8, 39);
            this.label98.Name = "label98";
            this.label98.Size = new System.Drawing.Size(114, 14);
            this.label98.TabIndex = 2;
            this.label98.Text = "PatchCodeDirection";
            // 
            // label99
            // 
            this.label99.Location = new System.Drawing.Point(8, 17);
            this.label99.Name = "label99";
            this.label99.Size = new System.Drawing.Size(115, 14);
            this.label99.TabIndex = 0;
            this.label99.Text = "PatchCodeDetection";
            // 
            // EdgeFiller
            // 
            this.EdgeFiller.Controls.Add(this.groupBox12);
            this.EdgeFiller.Location = new System.Drawing.Point(4, 22);
            this.EdgeFiller.Name = "EdgeFiller";
            this.EdgeFiller.Size = new System.Drawing.Size(728, 453);
            this.EdgeFiller.TabIndex = 5;
            this.EdgeFiller.Text = "EdgeFiller";
            // 
            // groupBox12
            // 
            this.groupBox12.Controls.Add(this.chkEdgeRepair);
            this.groupBox12.Controls.Add(this.groupBox13);
            this.groupBox12.Controls.Add(this.label116);
            this.groupBox12.Location = new System.Drawing.Point(8, 8);
            this.groupBox12.Name = "groupBox12";
            this.groupBox12.Size = new System.Drawing.Size(711, 137);
            this.groupBox12.TabIndex = 0;
            this.groupBox12.TabStop = false;
            // 
            // chkEdgeRepair
            // 
            this.chkEdgeRepair.Location = new System.Drawing.Point(138, 109);
            this.chkEdgeRepair.Name = "chkEdgeRepair";
            this.chkEdgeRepair.Size = new System.Drawing.Size(104, 19);
            this.chkEdgeRepair.TabIndex = 2;
            // 
            // groupBox13
            // 
            this.groupBox13.Controls.Add(this.label107);
            this.groupBox13.Controls.Add(this.txtEdgeFillerTop);
            this.groupBox13.Controls.Add(this.cboEdgeFiller);
            this.groupBox13.Controls.Add(this.label108);
            this.groupBox13.Controls.Add(this.label109);
            this.groupBox13.Controls.Add(this.label110);
            this.groupBox13.Controls.Add(this.label111);
            this.groupBox13.Controls.Add(this.txtEdgeFillerLeft);
            this.groupBox13.Controls.Add(this.label112);
            this.groupBox13.Controls.Add(this.label113);
            this.groupBox13.Controls.Add(this.label114);
            this.groupBox13.Controls.Add(this.label115);
            this.groupBox13.Controls.Add(this.txtEdgeFillerRight);
            this.groupBox13.Controls.Add(this.txtEdgeFillerBottom);
            this.groupBox13.Location = new System.Drawing.Point(10, 8);
            this.groupBox13.Name = "groupBox13";
            this.groupBox13.Size = new System.Drawing.Size(692, 91);
            this.groupBox13.TabIndex = 0;
            this.groupBox13.TabStop = false;
            // 
            // label107
            // 
            this.label107.Location = new System.Drawing.Point(191, 43);
            this.label107.Name = "label107";
            this.label107.Size = new System.Drawing.Size(36, 16);
            this.label107.TabIndex = 4;
            this.label107.Text = "inch";
            // 
            // txtEdgeFillerTop
            // 
            this.txtEdgeFillerTop.Location = new System.Drawing.Point(129, 38);
            this.txtEdgeFillerTop.MaxLength = 8;
            this.txtEdgeFillerTop.Name = "txtEdgeFillerTop";
            this.txtEdgeFillerTop.Size = new System.Drawing.Size(54, 19);
            this.txtEdgeFillerTop.TabIndex = 3;
            this.txtEdgeFillerTop.TextChanged += new System.EventHandler(this.txtEdgeFillerTop_TextChanged);
            // 
            // cboEdgeFiller
            // 
            this.cboEdgeFiller.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboEdgeFiller.Items.AddRange(new object[] {
            "Off",
            "Black",
            "White"});
            this.cboEdgeFiller.Location = new System.Drawing.Point(129, 15);
            this.cboEdgeFiller.Name = "cboEdgeFiller";
            this.cboEdgeFiller.Size = new System.Drawing.Size(152, 20);
            this.cboEdgeFiller.TabIndex = 1;
            this.cboEdgeFiller.SelectedIndexChanged += new System.EventHandler(this.cboEdgeFiller_SelectedIndexChanged);
            // 
            // label108
            // 
            this.label108.Location = new System.Drawing.Point(9, 65);
            this.label108.Name = "label108";
            this.label108.Size = new System.Drawing.Size(113, 14);
            this.label108.TabIndex = 8;
            this.label108.Text = "EdgeFillerLeft";
            // 
            // label109
            // 
            this.label109.Location = new System.Drawing.Point(9, 42);
            this.label109.Name = "label109";
            this.label109.Size = new System.Drawing.Size(130, 14);
            this.label109.TabIndex = 2;
            this.label109.Text = "EdgeFillerTop";
            // 
            // label110
            // 
            this.label110.Location = new System.Drawing.Point(9, 19);
            this.label110.Name = "label110";
            this.label110.Size = new System.Drawing.Size(99, 14);
            this.label110.TabIndex = 0;
            this.label110.Text = "EdgeFiller";
            // 
            // label111
            // 
            this.label111.Location = new System.Drawing.Point(191, 64);
            this.label111.Name = "label111";
            this.label111.Size = new System.Drawing.Size(36, 16);
            this.label111.TabIndex = 10;
            this.label111.Text = "inch";
            // 
            // txtEdgeFillerLeft
            // 
            this.txtEdgeFillerLeft.Location = new System.Drawing.Point(129, 61);
            this.txtEdgeFillerLeft.MaxLength = 8;
            this.txtEdgeFillerLeft.Name = "txtEdgeFillerLeft";
            this.txtEdgeFillerLeft.Size = new System.Drawing.Size(54, 19);
            this.txtEdgeFillerLeft.TabIndex = 9;
            this.txtEdgeFillerLeft.TextChanged += new System.EventHandler(this.txtEdgeFillerLeft_TextChanged);
            // 
            // label112
            // 
            this.label112.Location = new System.Drawing.Point(236, 65);
            this.label112.Name = "label112";
            this.label112.Size = new System.Drawing.Size(118, 14);
            this.label112.TabIndex = 11;
            this.label112.Text = "EdgeFillerRight";
            // 
            // label113
            // 
            this.label113.Location = new System.Drawing.Point(236, 42);
            this.label113.Name = "label113";
            this.label113.Size = new System.Drawing.Size(111, 14);
            this.label113.TabIndex = 5;
            this.label113.Text = "EdgeFillerBottom";
            // 
            // label114
            // 
            this.label114.Location = new System.Drawing.Point(418, 43);
            this.label114.Name = "label114";
            this.label114.Size = new System.Drawing.Size(36, 16);
            this.label114.TabIndex = 7;
            this.label114.Text = "inch";
            // 
            // label115
            // 
            this.label115.Location = new System.Drawing.Point(418, 64);
            this.label115.Name = "label115";
            this.label115.Size = new System.Drawing.Size(36, 16);
            this.label115.TabIndex = 13;
            this.label115.Text = "inch";
            // 
            // txtEdgeFillerRight
            // 
            this.txtEdgeFillerRight.Location = new System.Drawing.Point(358, 63);
            this.txtEdgeFillerRight.MaxLength = 8;
            this.txtEdgeFillerRight.Name = "txtEdgeFillerRight";
            this.txtEdgeFillerRight.Size = new System.Drawing.Size(54, 19);
            this.txtEdgeFillerRight.TabIndex = 12;
            this.txtEdgeFillerRight.TextChanged += new System.EventHandler(this.txtEdgeFillerRight_TextChanged);
            // 
            // txtEdgeFillerBottom
            // 
            this.txtEdgeFillerBottom.Location = new System.Drawing.Point(358, 40);
            this.txtEdgeFillerBottom.MaxLength = 8;
            this.txtEdgeFillerBottom.Name = "txtEdgeFillerBottom";
            this.txtEdgeFillerBottom.Size = new System.Drawing.Size(54, 19);
            this.txtEdgeFillerBottom.TabIndex = 6;
            this.txtEdgeFillerBottom.TextChanged += new System.EventHandler(this.txtEdgeFillerBottom_TextChanged);
            // 
            // label116
            // 
            this.label116.Location = new System.Drawing.Point(19, 110);
            this.label116.Name = "label116";
            this.label116.Size = new System.Drawing.Size(99, 14);
            this.label116.TabIndex = 1;
            this.label116.Text = "EdgeRepair";
            // 
            // statusBar1
            // 
            this.statusBar1.Location = new System.Drawing.Point(0, 506);
            this.statusBar1.Name = "statusBar1";
            this.statusBar1.Size = new System.Drawing.Size(837, 21);
            this.statusBar1.SizingGrip = false;
            this.statusBar1.TabIndex = 6;
            // 
            // mainMenu1
            // 
            this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.MenuItemFile,
            this.MenuItemScanner,
            this.MenuItemOption,
            this.MenuItemHelp});
            // 
            // MenuItemFile
            // 
            this.MenuItemFile.Index = 0;
            this.MenuItemFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.MenuItemExit});
            this.MenuItemFile.Text = "&File";
            // 
            // MenuItemExit
            // 
            this.MenuItemExit.Index = 0;
            this.MenuItemExit.Text = "&Exit";
            this.MenuItemExit.Click += new System.EventHandler(this.MenuItemExit_Click);
            // 
            // MenuItemScanner
            // 
            this.MenuItemScanner.Index = 1;
            this.MenuItemScanner.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.MenuItemStartScan,
            this.MenuItemSeparator1,
            this.MenuItemSelectSource,
            this.MenuItemSeparator2,
            this.MenuItemClearPage,
            this.menuItemSeparator4,
            this.menuItemFeederLoaded});
            this.MenuItemScanner.Text = "&Scanner";
            // 
            // MenuItemStartScan
            // 
            this.MenuItemStartScan.Index = 0;
            this.MenuItemStartScan.Text = "&StartScan";
            this.MenuItemStartScan.Click += new System.EventHandler(this.MenuItemStartScan_Click);
            // 
            // MenuItemSeparator1
            // 
            this.MenuItemSeparator1.Index = 1;
            this.MenuItemSeparator1.Text = "-";
            // 
            // MenuItemSelectSource
            // 
            this.MenuItemSelectSource.Index = 2;
            this.MenuItemSelectSource.Text = "Se&lectSource...";
            this.MenuItemSelectSource.Click += new System.EventHandler(this.MenuItemSelectSource_Click);
            // 
            // MenuItemSeparator2
            // 
            this.MenuItemSeparator2.Index = 3;
            this.MenuItemSeparator2.Text = "-";
            // 
            // MenuItemClearPage
            // 
            this.MenuItemClearPage.Index = 4;
            this.MenuItemClearPage.Text = "&ClearPage";
            this.MenuItemClearPage.Click += new System.EventHandler(this.MenuItemClearPage_Click);
            // 
            // menuItemSeparator4
            // 
            this.menuItemSeparator4.Index = 5;
            this.menuItemSeparator4.Text = "-";
            // 
            // menuItemFeederLoaded
            // 
            this.menuItemFeederLoaded.Index = 6;
            this.menuItemFeederLoaded.Text = "&FeederLoaded";
            this.menuItemFeederLoaded.Click += new System.EventHandler(this.menuItemFeederLoaded_Click);
            // 
            // MenuItemOption
            // 
            this.MenuItemOption.Index = 2;
            this.MenuItemOption.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.MenuItemShowSourceUI,
            this.MenuItemCloseSourceUI,
            this.MenuItemSourceCurrentScan,
            this.MenuItemSilentMode,
            this.MenuItemIndicator,
            this.MenuItemReport,
            this.MenuItemSeparator3,
            this.MenuItemSIPCTemplate,
            this.MenuItemTWAINTemplate});
            this.MenuItemOption.Text = "&Option";
            // 
            // MenuItemShowSourceUI
            // 
            this.MenuItemShowSourceUI.Checked = true;
            this.MenuItemShowSourceUI.Index = 0;
            this.MenuItemShowSourceUI.Text = "S&howSourceUI";
            this.MenuItemShowSourceUI.Click += new System.EventHandler(this.MenuItemShowSourceUI_Click);
            // 
            // MenuItemCloseSourceUI
            // 
            this.MenuItemCloseSourceUI.Checked = true;
            this.MenuItemCloseSourceUI.Index = 1;
            this.MenuItemCloseSourceUI.Text = "C&loseSourceUI";
            this.MenuItemCloseSourceUI.Click += new System.EventHandler(this.MenuItemCloseSourceUI_Click);
            // 
            // MenuItemSourceCurrentScan
            // 
            this.MenuItemSourceCurrentScan.Checked = true;
            this.MenuItemSourceCurrentScan.Index = 2;
            this.MenuItemSourceCurrentScan.Text = "Source&CurrentScan";
            this.MenuItemSourceCurrentScan.Click += new System.EventHandler(this.MenuItemSourceCurrentScan_Click);
            // 
            // MenuItemSilentMode
            // 
            this.MenuItemSilentMode.Checked = true;
            this.MenuItemSilentMode.Index = 3;
            this.MenuItemSilentMode.Text = "&SilentMode";
            this.MenuItemSilentMode.Click += new System.EventHandler(this.MenuItemSilentMode_Click);
            // 
            // MenuItemIndicator
            // 
            this.MenuItemIndicator.Checked = true;
            this.MenuItemIndicator.Index = 4;
            this.MenuItemIndicator.Text = "&Indicator";
            this.MenuItemIndicator.Click += new System.EventHandler(this.MenuItemIndicator_Click);
            // 
            // MenuItemReport
            // 
            this.MenuItemReport.Index = 5;
            this.MenuItemReport.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.MenuItemReportOFF,
            this.MenuItemReportDisplay,
            this.MenuItemReportFile,
            this.MenuItemReportBoth});
            this.MenuItemReport.Text = "&Report";
            // 
            // MenuItemReportOFF
            // 
            this.MenuItemReportOFF.Checked = true;
            this.MenuItemReportOFF.Index = 0;
            this.MenuItemReportOFF.RadioCheck = true;
            this.MenuItemReportOFF.Text = "&OFF";
            this.MenuItemReportOFF.Click += new System.EventHandler(this.MenuItemReportOFF_Click);
            // 
            // MenuItemReportDisplay
            // 
            this.MenuItemReportDisplay.Index = 1;
            this.MenuItemReportDisplay.RadioCheck = true;
            this.MenuItemReportDisplay.Text = "&Display";
            this.MenuItemReportDisplay.Click += new System.EventHandler(this.MenuItemReportDisplay_Click);
            // 
            // MenuItemReportFile
            // 
            this.MenuItemReportFile.Index = 2;
            this.MenuItemReportFile.RadioCheck = true;
            this.MenuItemReportFile.Text = "&File";
            this.MenuItemReportFile.Click += new System.EventHandler(this.MenuItemReportFile_Click);
            // 
            // MenuItemReportBoth
            // 
            this.MenuItemReportBoth.Index = 3;
            this.MenuItemReportBoth.RadioCheck = true;
            this.MenuItemReportBoth.Text = "Display&&File(&B)";
            this.MenuItemReportBoth.Click += new System.EventHandler(this.MenuItemReportBoth_Click);
            // 
            // MenuItemSeparator3
            // 
            this.MenuItemSeparator3.Index = 6;
            this.MenuItemSeparator3.Text = "-";
            // 
            // MenuItemSIPCTemplate
            // 
            this.MenuItemSIPCTemplate.Index = 7;
            this.MenuItemSIPCTemplate.Text = "SoftIPC &Template...";
            this.MenuItemSIPCTemplate.Click += new System.EventHandler(this.MenuItemSIPCTemplate_Click);
            // 
            // MenuItemTWAINTemplate
            // 
            this.MenuItemTWAINTemplate.Index = 8;
            this.MenuItemTWAINTemplate.Text = "T&WAIN Template...";
            this.MenuItemTWAINTemplate.Click += new System.EventHandler(this.MenuItemTWAINTemplate_Click);
            // 
            // MenuItemHelp
            // 
            this.MenuItemHelp.Index = 3;
            this.MenuItemHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.MenuItemVersion});
            this.MenuItemHelp.Text = "&Help";
            // 
            // MenuItemVersion
            // 
            this.MenuItemVersion.Index = 0;
            this.MenuItemVersion.Text = "&Version...";
            this.MenuItemVersion.Click += new System.EventHandler(this.MenuItemVersion_Click);
            // 
            // ButtonCheckADF
            // 
            this.ButtonCheckADF.Location = new System.Drawing.Point(758, 194);
            this.ButtonCheckADF.Name = "ButtonCheckADF";
            this.ButtonCheckADF.Size = new System.Drawing.Size(72, 24);
            this.ButtonCheckADF.TabIndex = 3;
            this.ButtonCheckADF.Text = "CheckADF";
            this.ButtonCheckADF.Click += new System.EventHandler(this.ButtonCheckADF_Click);
            // 
            // axFiScn1
            // 
            this.axFiScn1.Enabled = true;
            this.axFiScn1.Location = new System.Drawing.Point(771, 420);
            this.axFiScn1.Name = "axFiScn1";
            this.axFiScn1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axFiScn1.OcxState")));
            this.axFiScn1.Size = new System.Drawing.Size(48, 48);
            this.axFiScn1.TabIndex = 7;
            this.axFiScn1.ScanToFile += new AxFiScnLib._DFiScnEvents_ScanToFileEventHandler(this.axFiScn1_ScanToFile);
            this.axFiScn1.NegotiateCapabilities += new System.EventHandler(this.axFiscn1_NegotiateCapabilities);
            this.axFiScn1.DetectJobSeparator += new System.EventHandler(this.axFiScn1_DetectJobSeparator);
            this.axFiScn1.DetectBarcodeDetail += new AxFiScnLib._DFiScnEvents_DetectBarcodeDetailEventHandler(this.axFiScn1_DetectBarcodeDetail);
            this.axFiScn1.DetectPatchCode += new AxFiScnLib._DFiScnEvents_DetectPatchCodeEventHandler(this.axFiScn1_DetectPatchCode);
            this.axFiScn1.DetectBarcode += new AxFiScnLib._DFiScnEvents_DetectBarcodeEventHandler(this.axFiScn1_DetectBarcode);
            // 
            // FormScan
            // 
            this.AcceptButton = this.ButtonScan;
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
            this.CancelButton = this.ButtonExit;
            this.ClientSize = new System.Drawing.Size(837, 527);
            this.Controls.Add(this.axFiScn1);
            this.Controls.Add(this.ButtonCheckADF);
            this.Controls.Add(this.statusBar1);
            this.Controls.Add(this.tabControl1);
            this.Controls.Add(this.ButtonReset);
            this.Controls.Add(this.ButtonExit);
            this.Controls.Add(this.ButtonScan);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
            this.MaximizeBox = false;
            this.Menu = this.mainMenu1;
            this.MinimizeBox = false;
            this.Name = "FormScan";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "fiScanTest";
            this.Load += new System.EventHandler(this.FormScan_Load);
            this.Closed += new System.EventHandler(this.FormScan_Closed);
            this.tabControl1.ResumeLayout(false);
            this.Standard.ResumeLayout(false);
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.Image.ResumeLayout(false);
            this.groupBox5.ResumeLayout(false);
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.Extention.ResumeLayout(false);
            this.groupBox7.ResumeLayout(false);
            this.groupBox7.PerformLayout();
            this.Endorser.ResumeLayout(false);
            this.groupBox6.ResumeLayout(false);
            this.groupBox6.PerformLayout();
            this.groupBox14.ResumeLayout(false);
            this.groupBox14.PerformLayout();
            this.Barcode.ResumeLayout(false);
            this.groupBox8.ResumeLayout(false);
            this.groupBox8.PerformLayout();
            this.groupBox9.ResumeLayout(false);
            this.groupBox9.PerformLayout();
            this.PatchCode.ResumeLayout(false);
            this.groupBox10.ResumeLayout(false);
            this.groupBox11.ResumeLayout(false);
            this.EdgeFiller.ResumeLayout(false);
            this.groupBox12.ResumeLayout(false);
            this.groupBox13.ResumeLayout(false);
            this.groupBox13.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.axFiScn1)).EndInit();
            this.ResumeLayout(false);

        }
        #endregion

        public static FormScan CurrentInstance;

        //----------------------------------------------------------------------------
        //   Function    : The form was loaded
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void FormScan_Load(object sender, System.EventArgs e)
        {

            CurrentInstance = this;
            FormSplash frmSplash = new FormSplash();
            string lpFileName;
            string lpFilePath;

            frmSplash.Show();
            System.Windows.Forms.Application.DoEvents();
            
            ModuleScan.blnFjtwn= true;
            ModuleScan.blnOpenScanner = true;
            ModuleScan.strTwainDS = "";

            //Generation of a file path
            lpFileName = Application.ExecutablePath;
            lpFilePath = Application.StartupPath;

            if(lpFilePath != null && lpFilePath.Equals("") == false && 
                lpFileName != null && lpFileName.Equals("") == false)
            {
                ModuleScan.strFilePath = lpFilePath + "\\fiScanTest.ini";
                ModuleScan.strDirPath = lpFilePath;
                ModuleScan.strReportFile = lpFilePath + "\\Report.txt";
            }
            else
            {
                ModuleScan.strFilePath = "";
                ModuleScan.strDirPath = "";
                ModuleScan.strReportFile = "";
            }
            
            //Scanner pretreatment
            OpenScanner();

            //Reading of a configuration file
            InitialFileRead();

            frmSplash.Close();
            frmSplash.Dispose();
        }

        //----------------------------------------------------------------------------
        //  Function    : The form was closed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void FormScan_Closed(object sender, System.EventArgs e)
        {
            int status;
            int ErrorCode;

            //Call "CloseScanner" method
            status = axFiScn1.CloseScanner(this.Handle.ToInt32());

            if(status == ModuleScan.RC_FAILURE)
            {
                ErrorCode = axFiScn1.ErrorCode;
                MessageBox.Show("The \"CloseScanner\" function became an error.\n\terror code : " + HexString(ErrorCode), "fiScanTest");
            }

            if(ModuleScan.blnFjtwn == true)
            {
                WriteScanINIFile();
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : The "Exit" menu was chosen
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void MenuItemExit_Click(object sender, System.EventArgs e)
        {
            this.Close();
        }

        //----------------------------------------------------------------------------
        //   Function    : The "StartScan" menu was chosen
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void MenuItemStartScan_Click(object sender, System.EventArgs e)
        {
            StartScan();
        }
        
        //----------------------------------------------------------------------------
        //   Function    : The "SelectSource" menu was chosen
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void MenuItemSelectSource_Click(object sender, System.EventArgs e)
        {
            int status;
            int ErrorCode;

            //Call "SelectSource" method
            status = axFiScn1.SelectSource(this.Handle.ToInt32());

            //failure
            if(status == ModuleScan.RC_FAILURE)
            {
                ErrorCode = axFiScn1.ErrorCode;
                MessageBox.Show("A scanner was not able to be selected.\n\terror code : " + HexString(ErrorCode), "fiScanTest");
                this.ButtonScan.Enabled = false;
                this.MenuItemStartScan.Enabled = false;
                this.MenuItemClearPage.Enabled = false;
            }
            else if(status == ModuleScan.RC_SUCCESS)
            {
                //A scanner is reopened
                if(ModuleScan.blnOpenScanner == true)
                {
                    axFiScn1.CloseScanner(this.Handle.ToInt32());
                }
                ModuleScan.blnFjtwn = true;
                ModuleScan.blnOpenScanner = true;
                OpenScanner();
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The "ClearPage" menu was chosen
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void MenuItemClearPage_Click(object sender, System.EventArgs e)
        {
            int status;
            int ErrorCode;

            //Call "ClearPage" method
            status = axFiScn1.ClearPage(this.Handle.ToInt32());
            
            if(status == ModuleScan.RC_FAILURE)
            {
                ErrorCode = axFiScn1.ErrorCode;
                MessageBox.Show("The error occurred in discharge of a paper.\n\terror code : " + HexString(ErrorCode), "fiScanTest");
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The "ShowSourceUI" menu was chosen
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void MenuItemShowSourceUI_Click(object sender, System.EventArgs e)
        {
            if((this.cboPaperSupply.SelectedIndex == ModuleScan.ADF_A3CS) ||
                (this.cboPaperSupply.SelectedIndex == ModuleScan.ADF_DLCS) ||
                (this.cboPaperSupply.SelectedIndex == ModuleScan.ADF_B4CS) ||
                (this.cboPaperSupply.SelectedIndex == ModuleScan.ADF_CS))
            {
                if( this. MenuItemShowSourceUI.Checked == true) 
                {
                    this.MenuItemShowSourceUI.Checked = false;
                }
            }
            else
            {
                if (this.MenuItemShowSourceUI.Checked == true) 
                {
                    this.MenuItemShowSourceUI.Checked = false;
                }
                else
                {
                    this.MenuItemShowSourceUI.Checked = true;
                    this.MenuItemIndicator.Checked = true;
                }
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The "CloseSourceUI" menu was chosen
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void MenuItemCloseSourceUI_Click(object sender, System.EventArgs e)
        {
            if(this.MenuItemCloseSourceUI.Checked == true)
            {
                this.MenuItemCloseSourceUI.Checked = false;
            }
            else
            {
                this.MenuItemCloseSourceUI.Checked = true;
            }
        
        }

        //----------------------------------------------------------------------------
        //  Function    : The "SourceCurrentScan" menu was chosen
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void MenuItemSourceCurrentScan_Click(object sender, System.EventArgs e)
        {
            if(this.MenuItemSourceCurrentScan.Checked == true)
            {
                this.MenuItemSourceCurrentScan.Checked = false;
            }
            else
            {
                this.MenuItemSourceCurrentScan.Checked = true;
            }
            this.MenuItemTWAINTemplate.Enabled = this.MenuItemSourceCurrentScan.Checked;
        }

        //----------------------------------------------------------------------------
        //  Function    : The "SilentMode" menu was chosen
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void MenuItemSilentMode_Click(object sender, System.EventArgs e)
        {
            if(this.MenuItemSilentMode.Checked == true)
            {
                this.MenuItemSilentMode.Checked = false;
            }
            else
            {
                this.MenuItemSilentMode.Checked = true;
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The "Report->OFF" menu was chosen
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void MenuItemReportOFF_Click(object sender, System.EventArgs e)
        {
            this.MenuItemReportOFF.Checked = true;
            this.MenuItemReportDisplay.Checked = false;
            this.MenuItemReportFile.Checked = false;
            this.MenuItemReportBoth.Checked = false;
            ModuleScan.intReport = 0;
        }

        //----------------------------------------------------------------------------
        //  Function    : The "Report->Display" menu was chosen
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void MenuItemReportDisplay_Click(object sender, System.EventArgs e)
        {
            this.MenuItemReportOFF.Checked = false;
            this.MenuItemReportDisplay.Checked = true;
            this.MenuItemReportFile.Checked = false;
            this.MenuItemReportBoth.Checked = false;
            ModuleScan.intReport = 1;
        }

        //----------------------------------------------------------------------------
        //  Function    : The "Report->File" menu was chosen
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void MenuItemReportFile_Click(object sender, System.EventArgs e)
        {
            this.MenuItemReportOFF.Checked = false;
            this.MenuItemReportDisplay.Checked = false;
            this.MenuItemReportFile.Checked = true;
            this.MenuItemReportBoth.Checked = false;
            ModuleScan.intReport = 2;
        }

        //----------------------------------------------------------------------------
        //  Function    : The "Report->Display&File" menu was chosen
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void MenuItemReportBoth_Click(object sender, System.EventArgs e)
        {
            this.MenuItemReportOFF.Checked = false;
            this.MenuItemReportDisplay.Checked = false;
            this.MenuItemReportFile.Checked = false;
            this.MenuItemReportBoth.Checked = true;
            ModuleScan.intReport = 3;
        }

        //----------------------------------------------------------------------------
        //  Function    : The "SoftIPC Template..." menu was chosen
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void MenuItemSIPCTemplate_Click(object sender, System.EventArgs e)
        {
            FormSoftIPC frmSoftIPC = new FormSoftIPC();
            frmSoftIPC.ShowDialog();
        }

        //----------------------------------------------------------------------------
        //  Function    : The "TWAIN Template..." menu was chosen
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void MenuItemTWAINTemplate_Click(object sender, System.EventArgs e)
        {
            FormTWAIN frmTWAIN = new FormTWAIN();
            frmTWAIN.ShowDialog();
        }

        //----------------------------------------------------------------------------
        //  Function    : The "Version..." menu was chosen
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void MenuItemVersion_Click(object sender, System.EventArgs e)
        {
            FormAbout frmAbout = new FormAbout();
            frmAbout.ShowDialog();
        }

        //----------------------------------------------------------------------------
        //  Function    : The "Scan" button was pushed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void ButtonScan_Click(object sender, System.EventArgs e)
        {
            this.StartScan();
        }

        //----------------------------------------------------------------------------
        //  Function    : The "Exit" button was pushed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void ButtonExit_Click(object sender, System.EventArgs e)
        {
            this.Close();
        }

        //----------------------------------------------------------------------------
        //  Function    : The "Reset" button was pushed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void ButtonReset_Click(object sender, System.EventArgs e)
        {
            this.DefaultSet();
        }

        //----------------------------------------------------------------------------
        //  Function    : Scanning is started
        //  Argument    : Nothing
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void StartScan()
        {
            int status;
            int ErrorCode;
            FormCancelScan frmCancelScan = new FormCancelScan();

            //A scanning parameter is set as scanner control.
            ScanModeSet();

            frmCancelScan.StartPosition = FormStartPosition.Manual;
            frmCancelScan.Top = this.Top;
            frmCancelScan.Left = this.Left + this.Width;
            frmCancelScan.Owner = this;
            frmCancelScan.Show();

            //Scanning start
            status = axFiScn1.StartScan(this.Handle.ToInt32());

            //failure
            if(status == ModuleScan.RC_FAILURE)
            {
                ErrorCode = axFiScn1.ErrorCode;
                MessageBox.Show("The scanning error occurred.\n\terror code : " + HexString(ErrorCode), "fiScanTest");
                this.statusBar1.Text = axFiScn1.PageCount + "sheets were scanned.";
            }
            else if( status == ModuleScan.RC_CANCEL)
            {
                MessageBox.Show("The user canceled scanning.\nOr the error which cannot continue scanning was detected.", "fiScanTest");
                this.statusBar1.Text = axFiScn1.PageCount + "sheets were scanned.";
            }
            else
            {
                if (resultList.Count > 0)
                {
                    FormResultOfDetect frmResultOfDetect = new FormResultOfDetect();
                    frmResultOfDetect.resultArray = (ArrayList)resultList.Clone();
                    frmResultOfDetect.InsertResultOfDetect();
                    frmResultOfDetect.ShowDialog();
                    resultList.RemoveRange(0, resultList.Count);
                }
                this.statusBar1.Text = axFiScn1.PageCount + "sheets were scanned.";
            }

            //Update of FileCounter
            this.txtFileCounter.Text = axFiScn1.FileCounter.ToString();

            frmCancelScan.Close();
        }

        //----------------------------------------------------------------------------
        //  Function    : Pretreatment
        //  Argument    : Nothing
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void OpenScanner()
        {
            int status;
            int ErrorCode;

            //Call "OpenScanner" method
            status = axFiScn1.OpenScanner(this.Handle.ToInt32());
            if(status == ModuleScan.RC_FAILURE)
            {
                ErrorCode = axFiScn1.ErrorCode;
                MessageBox.Show("The \"OpenScanner\" function became an error.\n\terror code : " + HexString(ErrorCode), "fiScanTest");
                ModuleScan.blnFjtwn = false;
                ModuleScan.blnOpenScanner = false;
            }
            else if(status == ModuleScan.RC_NOT_DS_FJTWAIN)
            {
                MessageBox.Show("It is not \"FUJITSU TWAIN32 Driver.\"", "fiScanTest");
                ModuleScan.blnFjtwn = false;
            }

            //A "Scan" button is disabled when "OpenScanner" failed.
            if( ModuleScan.blnOpenScanner == false)
            {
                this.ButtonScan.Enabled = false;
                this.MenuItemStartScan.Enabled = false;
                this.MenuItemClearPage.Enabled = false;
            }
            else
            {
                this.ButtonScan.Enabled = true;
                this.MenuItemStartScan.Enabled = true;
                this.MenuItemClearPage.Enabled = true;
            }

            //An image scanner name is displayed on a title.
            if(axFiScn1.ImageScanner.Length > 0)
            {
                this.Text = "Visual C# Sample fiScanTest(" + axFiScn1.ImageScanner + ")";
            }
            else
            {
                this.Text = "Visual C# Sample fiScanTest";
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The hexadecimal number character string of 8 figures is
        //                generated.
        //  Argument    : ErrorCode
        //  Return code : String
        //----------------------------------------------------------------------------
        public string HexString(int ErrorCode)
        {
            string strWork;
            strWork = ErrorCode.ToString("X");
            if(strWork.Length == 1)
            {
                strWork = "0x0000000" + strWork;
            }
            else if(strWork.Length == 2)
            {
                strWork = "0x000000" + strWork;
            }
            else if(strWork.Length == 3)
            {
                strWork = "0x00000" + strWork;
            }
            else if(strWork.Length == 4)
            {
                strWork = "0x0000" + strWork;
            }
            else if(strWork.Length == 5)
            {
                strWork = "0x000" + strWork;
            }
            else if(strWork.Length == 6)
            {
                strWork = "0x00" + strWork;
            }
            else if(strWork.Length == 7)
            {
                strWork = "0x0" + strWork;
            }
            else 
            {
                strWork = "0x" + strWork;
            }
            return strWork;
        }

        //----------------------------------------------------------------------------
        //  Function    : The parameter information set as scanner control
        //  Argument    : Nothing
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void ScanModeSet()
        {
            //Scanner parameter setting
            this.axFiScn1.Outline = ModuleScan.NONE;
            this.axFiScn1.ScanTo = (short)this.cboScanTo.SelectedIndex;
            this.axFiScn1.FileType = (short)this.cboFileType.SelectedIndex;
            this.axFiScn1.FileName = this.txtFileName.Text;
            this.axFiScn1.Overwrite = (short)this.cboOverwrite.SelectedIndex;
            this.axFiScn1.FileCounter = System.Int32.Parse(this.txtFileCounter.Text);
            this.axFiScn1.CompressionType = (short)this.cboCompType.SelectedIndex;
            this.axFiScn1.JpegQuality = (short)this.cboJpegQuality.SelectedIndex;
            this.axFiScn1.ScanMode = (short)this.cboScanMode.SelectedIndex;
            this.axFiScn1.ScanContinue = this.chkScanContinue.Checked;
            this.axFiScn1.PixelType = (short)this.cboPixelType.SelectedIndex;
            if(this.cboResolution.SelectedIndex == 8)
            {
                this.axFiScn1.Resolution = ModuleScan.RS_1200;
            }
            else if (this.cboResolution.SelectedIndex == 9)
            {
                this.axFiScn1.Resolution = ModuleScan.RS_CUSTM;
            }
            else
            {
                this.axFiScn1.Resolution = (short)this.cboResolution.SelectedIndex;
            }
            this.axFiScn1.CustomResolution = short.Parse(this.txtCustomResolution.Text);
            this.axFiScn1.Brightness = short.Parse(this.txtBrightness.Text);
            this.axFiScn1.Contrast = short.Parse(this.txtContrast.Text);
            this.axFiScn1.Threshold = short.Parse(this.txtThreshold.Text);
            this.axFiScn1.Reverse = this.chkReverse.Checked;
            this.axFiScn1.Mirroring = this.chkMirroring.Checked;
            this.axFiScn1.Rotation = (short)this.cboRotation.SelectedIndex;
            this.axFiScn1.Background = (short)this.cboBackground.SelectedIndex;
            if(this.cboPixelType.SelectedIndex == ModuleScan.PIXEL_RGB
                && this.cboOutline.SelectedIndex > 3)
            {
                this.axFiScn1.Outline = (short)(this.cboOutline.SelectedIndex + 1);
            }
            else
            {
                this.axFiScn1.Outline = (short)this.cboOutline.SelectedIndex;
            }
            this.axFiScn1.Halftone = (short)this.cboHalftone.SelectedIndex;
            this.axFiScn1.HalftoneFile = this.txtHalftoneFile.Text;
            this.axFiScn1.Gamma = (short)this.cboGamma.SelectedIndex;
            this.axFiScn1.GammaFile = this.txtGammaFile.Text;

            float customGammaValue;
            try
            {
                customGammaValue = float.Parse(txtCustomGamma.Text);
            }
            catch (FormatException)
            {
                customGammaValue = float.Parse(txtCustomGamma.Text.Replace('.', ','));
            }
            this.axFiScn1.CustomGamma = customGammaValue;

            this.axFiScn1.AutoSeparation = (short)this.cboAutoSeparation.SelectedIndex;
            this.axFiScn1.SEE = (short)this.cboSEE.SelectedIndex;
            int iPaperSupply = 0;
            if (this.cboPaperSupply.SelectedIndex >= 8 && this.cboPaperSupply.SelectedIndex <= 47)
            {
                iPaperSupply = 2;
            }
            this.axFiScn1.PaperSupply = (short)(this.cboPaperSupply.SelectedIndex + iPaperSupply);
            this.axFiScn1.ScanCount =short.Parse(this.txtScanCount.Text);
            if(this.cboPaperSize.SelectedIndex == ModuleScan.PSIZE_INDEX_CUSTOM)
            {
                this.axFiScn1.PaperSize = ModuleScan.PSIZE_DATA_CUSTOM;
            }
            else
            {
                this.axFiScn1.PaperSize = (short)this.cboPaperSize.SelectedIndex;
            }
            this.axFiScn1.LongPage = this.chkLongPage.Checked;
            this.axFiScn1.Orientation = (short)this.cboOrientation.SelectedIndex;

            float customPaperWidthValue;
            try
            {
                customPaperWidthValue = float.Parse(txtCustomPaperWidth.Text);
            }
            catch (FormatException)
            {
                customPaperWidthValue = float.Parse(txtCustomPaperWidth.Text.Replace('.', ','));
            }
            this.axFiScn1.CustomPaperWidth = customPaperWidthValue;
            float customPaperLengthValue;
            try
            {
                customPaperLengthValue = float.Parse(txtCustomPaperLength.Text);
            }
            catch (FormatException)
            {
                customPaperLengthValue = float.Parse(txtCustomPaperLength.Text.Replace('.', ','));
            }
            this.axFiScn1.CustomPaperLength = customPaperLengthValue;

            float regionLeftValue;
            try
            {
                regionLeftValue = float.Parse(txtRegionLeft.Text);
            }
            catch (FormatException)
            {
                regionLeftValue = float.Parse(txtRegionLeft.Text.Replace('.', ','));
            }
            this.axFiScn1.RegionLeft = regionLeftValue;

            float regionTopValue;
            try
            {
                regionTopValue = float.Parse(txtRegionTop.Text);
            }
            catch (FormatException)
            {
                regionTopValue = float.Parse(txtRegionTop.Text.Replace('.', ','));
            }
            this.axFiScn1.RegionTop = regionTopValue;

            float regionWidthValue;
            try
            {
                regionWidthValue = float.Parse(txtRegionWidth.Text);
            }
            catch (FormatException)
            {
                regionWidthValue = float.Parse(txtRegionWidth.Text.Replace('.', ','));
            }
            this.axFiScn1.RegionWidth = regionWidthValue;

            float regionLengthValue;
            try
            {
                regionLengthValue = float.Parse(txtRegionLength.Text);
            }
            catch (FormatException)
            {
                regionLengthValue = float.Parse(txtRegionLength.Text.Replace('.', ','));
            }
            this.axFiScn1.RegionLength = regionLengthValue;

            this.axFiScn1.UndefinedScanning = this.chkUndefinedScanning.Checked;
            this.axFiScn1.BackgroundColor = (short)this.cboBackgroundColor.SelectedIndex;
            this.axFiScn1.ThresholdCurve = (short)this.cboThresholdCurve.SelectedIndex;
            this.axFiScn1.NoiseRemoval = (short)this.cboNoiseRemoval.SelectedIndex;
            this.axFiScn1.PreFiltering = this.chkPreFiltering.Checked;
            this.axFiScn1.Smoothing = this.chkSmoothing.Checked;
            this.axFiScn1.Endorser = this.chkEndorser.Checked;

            float endorserOffsetValue;
            try
            {
                endorserOffsetValue = float.Parse(txtEndorserOffset.Text);
            }
            catch (FormatException)
            {
                endorserOffsetValue = float.Parse(txtEndorserOffset.Text.Replace('.', ','));
            }
            this.axFiScn1.EndorserOffset = endorserOffsetValue;

            this.axFiScn1.EndorserString = this.txtEndorserString.Text;
            this.axFiScn1.EndorserCounter = System.Int32.Parse(this.txtEndorserCounter.Text);
            if(this.cboEndorserDirection.SelectedIndex == 1)
            {
                this.axFiScn1.EndorserDirection = 3;
            }
            else
            {
                this.axFiScn1.EndorserDirection = 1;
            }
            this.axFiScn1.EndorserCountStep = (short)this.cboEndorserCountStep.SelectedIndex;
            this.axFiScn1.EndorserCountDirection = (short)this.cboEndorserCountDirection.SelectedIndex;
            this.axFiScn1.EndorserFont = (short)this.cboEndorserFont.SelectedIndex;
            this.axFiScn1.SynchronizationDigitalEndorser = this.chkSynchronizationDigitalEndorser.Checked;
            this.axFiScn1.DigitalEndorser = this.chkDigitalEndorser.Checked;

            float endorserDigitalXOffsetValue;
            try
            {
                endorserDigitalXOffsetValue = float.Parse(txtDigitalEndorserXOffset.Text);
            }
            catch (FormatException)
            {
                endorserDigitalXOffsetValue = float.Parse(txtDigitalEndorserXOffset.Text.Replace('.', ','));
            }
            this.axFiScn1.DigitalEndorserXOffset = endorserDigitalXOffsetValue;
            float endorserDigitalYOffsetValue;
            try
            {
                endorserDigitalYOffsetValue = float.Parse(txtDigitalEndorserYOffset.Text);
            }
            catch (FormatException)
            {
                endorserDigitalYOffsetValue = float.Parse(txtDigitalEndorserYOffset.Text.Replace('.', ','));
            }
            this.axFiScn1.DigitalEndorserYOffset = endorserDigitalYOffsetValue;
            this.axFiScn1.DigitalEndorserString = this.txtDigitalEndorserString.Text;
            this.axFiScn1.DigitalEndorserCounter = System.Int32.Parse(this.txtDigitalEndorserCounter.Text);
            this.axFiScn1.DigitalEndorserCountStep = (short)this.cboDigitalEndorserCountStep.SelectedIndex;
            this.axFiScn1.DigitalEndorserCountDirection = (short)this.cboDigitalEndorserCountDirection.SelectedIndex;

            this.axFiScn1.JobControl = (short)this.cboJobControl.SelectedIndex;
            this.axFiScn1.Binding = (short)this.cboBinding.SelectedIndex;
            this.axFiScn1.MultiFeed = (short)this.cboMultiFeed.SelectedIndex;
            if(this.cboFilter.SelectedIndex == 7)
            {
                this.axFiScn1.Filter = 99;
            }
            else if(cboFilter.SelectedIndex == 8)
            {
                this.axFiScn1.Filter = 100;
            }
            else if(this.cboFilter.SelectedIndex == 9)
            {
                this.axFiScn1.Filter = 101;
            }
            else if(this.cboFilter.SelectedIndex == 10)
            {
                this.axFiScn1.Filter = 102;
            }
            else
            {
                this.axFiScn1.Filter = (short)this.cboFilter.SelectedIndex;
            }
            this.axFiScn1.FilterSaturationSensitivity = short.Parse(this.txtFilterSaturationSensitivity.Text);
            this.axFiScn1.SkipWhitePage = short.Parse(this.txtSkipWhitePage.Text);
            this.axFiScn1.SkipBlackPage = short.Parse(this.txtSkipBlackPage.Text);
            this.axFiScn1.AutoBorderDetection = this.chkAutoBorderDetection.Checked;
            this.axFiScn1.ShowSourceUI = this.MenuItemShowSourceUI.Checked;
            this.axFiScn1.CloseSourceUI = this.MenuItemCloseSourceUI.Checked;
            this.axFiScn1.SourceCurrentScan = this.MenuItemSourceCurrentScan.Checked;
            this.axFiScn1.SilentMode = this.MenuItemSilentMode.Checked;
            this.axFiScn1.Report = (short)ModuleScan.intReport;
            this.axFiScn1.ReportFile = ModuleScan.strReportFile;
            this.axFiScn1.TwainDS = ModuleScan.strTwainDS;
            this.axFiScn1.Indicator = MenuItemIndicator.Checked;
            this.axFiScn1.Highlight = short.Parse(txtHighlight.Text);
            this.axFiScn1.Shadow = short.Parse(txtShadow.Text);
            this.axFiScn1.OverScan = (short)this.cboOverScan.SelectedIndex;
            this.axFiScn1.Unit = (short)this.cboUnit.SelectedIndex;
            this.axFiScn1.AutoBright = this.chkAutoBright.Checked;
            this.axFiScn1.AutomaticSenseMedium = this.chkAutomaticSenseMedium.Checked;
            this.axFiScn1.BackgroundSmoothing = (short)this.cboBackgroundSmoothing.SelectedIndex;
            this.axFiScn1.BlankPageSkip = short.Parse(this.txtBlankPageSkip.Text);
            this.axFiScn1.JobControlMode = (short)this.cboJobControlMode.SelectedIndex;
            this.axFiScn1.DTCSensitivity = short.Parse(this.txtDTCSensitivity.Text);
            this.axFiScn1.BackgroundThreshold = short.Parse(this.txtBackgroundThreshold.Text);
            this.axFiScn1.CharacterThickness = short.Parse(this.txtCharacterThickness.Text);
            this.axFiScn1.SDTCSensitivity = short.Parse(this.txtSDTCSensitivity.Text);
            this.axFiScn1.NoiseRejection = short.Parse(this.txtNoiseRejection.Text);
            this.axFiScn1.ADTCThreshold = short.Parse(this.txtADTCThreshold.Text);
            this.axFiScn1.FadingCompensation = short.Parse(this.txtFadingCompensation.Text);
            this.axFiScn1.sRGB = this.chksRGB.Checked;
            this.axFiScn1.PatternRemoval = (short)this.cboPatternRemoval.SelectedIndex;
            this.axFiScn1.Sharpness = (short)this.cboSharpness.SelectedIndex;
            this.axFiScn1.PunchHoleRemoval = (short)this.cboPunchHoleRemoval.SelectedIndex;
            this.axFiScn1.VerticalLineReduction = this.chkVerticalLineReduction.Checked;
            this.axFiScn1.AIQCNotice = this.chkAIQCNotice.Checked;
            this.axFiScn1.BackgroundSmoothness = short.Parse(this.txtBackgroundSmoothness.Text);
            this.axFiScn1.CropPriority = (short)this.cboCropPriority.SelectedIndex;
            this.axFiScn1.Deskew = (short)this.cboDeskew.SelectedIndex;
            float cropMarginSize;
            try
            {
                cropMarginSize = float.Parse(txtCropMarginSize.Text);
            }
            catch (FormatException)
            {
                cropMarginSize = float.Parse(txtCropMarginSize.Text.Replace('.', ','));
            }
            this.axFiScn1.CropMarginSize = cropMarginSize;
            float multiFeedModeChangeSize;
            try
            {
                multiFeedModeChangeSize = float.Parse(txtMultiFeedModeChangeSize.Text);
            }
            catch (FormatException)
            {
                multiFeedModeChangeSize = float.Parse(txtMultiFeedModeChangeSize.Text.Replace('.', ','));
            }
            this.axFiScn1.MultiFeedModeChangeSize = multiFeedModeChangeSize;
            this.axFiScn1.BlankPageNotice = (short)this.cboBlankPageNotice.SelectedIndex;
            this.axFiScn1.HwCompression = this.chkHwCompression.Checked;
            this.axFiScn1.BarcodeDetection = this.chkBarcodeDetection.Checked;
            this.axFiScn1.BarcodeDirection = (short)this.cboBarcodeDirection.SelectedIndex;
            float barcodeLeft;
            try
            {
                barcodeLeft = float.Parse(txtBarcodeRegionLeft.Text);
            }
            catch (FormatException)
            {
                barcodeLeft = float.Parse(txtBarcodeRegionLeft.Text.Replace('.', ','));
            }
            this.axFiScn1.BarcodeRegionLeft = barcodeLeft;
            float barcodeTop;
            try
            {
                barcodeTop = float.Parse(txtBarcodeRegionTop.Text);
            }
            catch (FormatException)
            {
                barcodeTop = float.Parse(txtBarcodeRegionTop.Text.Replace('.', ','));
            }
            this.axFiScn1.BarcodeRegionTop = barcodeTop;
            float barcodeWidth;
            try
            {
                barcodeWidth = float.Parse(txtBarcodeRegionWidth.Text);
            }
            catch (FormatException)
            {
                barcodeWidth = float.Parse(txtBarcodeRegionWidth.Text.Replace('.', ','));
            }
            this.axFiScn1.BarcodeRegionWidth = barcodeWidth;
            float barcodeLength;
            try
            {
                barcodeLength = float.Parse(txtBarcodeRegionLength.Text);
            }
            catch (FormatException)
            {
                barcodeLength = float.Parse(txtBarcodeRegionLength.Text.Replace('.', ','));
            }
            this.axFiScn1.BarcodeRegionLength = barcodeLength;
            int barcodeType = 0;
            if (this.chkEAN8.Checked) 
            {
                barcodeType += ModuleScan.BA_EAN8;
            }
            if (this.chkEAN13.Checked) 
            {
                barcodeType += ModuleScan.BA_EAN13;
            }
            if (this.chkCode3of9.Checked) 
            {
                barcodeType += ModuleScan.BA_CODE3OF9;
            }
            if (this.chkCode128.Checked) 
            {
                barcodeType += ModuleScan.BA_CODE128;
            }
            if (this.chkITF.Checked) 
            {
                barcodeType += ModuleScan.BA_ITF;
            }
            if (this.chkUPCA.Checked) 
            {
                barcodeType += ModuleScan.BA_UPCA;
            }
            if (this.chkCodabar.Checked) 
            {
                barcodeType += ModuleScan.BA_CODABAR;
            }
            if (this.chkPDF417.Checked) 
            {
                barcodeType += ModuleScan.BA_PDF417;
            }
            if (this.chkQRCode.Checked) 
            {
                barcodeType += ModuleScan.BA_QRCODE;
            }
            if (this.chkDataMatrix.Checked)
            {
                barcodeType += ModuleScan.BA_DATAMATRIX;
            }
            this.axFiScn1.BarcodeType = barcodeType;
            this.axFiScn1.BarcodeMaxSearchPriorities = short.Parse(this.txtBarcodeMaxSearchPriorities.Text);

            this.axFiScn1.PatchCodeDetection = this.chkPatchCodeDetection.Checked;
            this.axFiScn1.PatchCodeDirection = (short)this.cboPatchCodeDirection.SelectedIndex;
            int patchCodeType = 0;
            if (this.chkPatch1.Checked) 
            {
                patchCodeType += ModuleScan.PA_PATCH1;
            }
            if (this.chkPatch2.Checked) 
            {
                patchCodeType += ModuleScan.PA_PATCH2;
            }
            if (this.chkPatch3.Checked) 
            {
                patchCodeType += ModuleScan.PA_PATCH3;
            }
            if (this.chkPatch4.Checked) 
            {
                patchCodeType += ModuleScan.PA_PATCH4;
            }
            if (this.chkPatch6.Checked) 
            {
                patchCodeType += ModuleScan.PA_PATCH6;
            }
            if (this.chkPatchT.Checked) 
            {
                patchCodeType += ModuleScan.PA_PATCHT;
            }
            this.axFiScn1.PatchCodeType = patchCodeType;

            this.axFiScn1.EdgeFiller = (short)this.cboEdgeFiller.SelectedIndex;
            float edgeTop;
            try
            {
                edgeTop = float.Parse(txtEdgeFillerTop.Text);
            }
            catch (FormatException)
            {
                edgeTop = float.Parse(txtEdgeFillerTop.Text.Replace('.', ','));
            }
            this.axFiScn1.EdgeFillerTop = edgeTop;
            float edgeBottom;
            try
            {
                edgeBottom = float.Parse(txtEdgeFillerBottom.Text);
            }
            catch (FormatException)
            {
                edgeBottom = float.Parse(txtEdgeFillerBottom.Text.Replace('.', ','));
            }
            this.axFiScn1.EdgeFillerBottom = edgeBottom;
            float edgeLeft;
            try
            {
                edgeLeft = float.Parse(txtEdgeFillerLeft.Text);
            }
            catch (FormatException)
            {
                edgeLeft = float.Parse(txtEdgeFillerLeft.Text.Replace('.', ','));
            }
            this.axFiScn1.EdgeFillerLeft = edgeLeft;
            float edgeRight;
            try
            {
                edgeRight = float.Parse(txtEdgeFillerRight.Text);
            }
            catch (FormatException)
            {
                edgeRight = float.Parse(txtEdgeFillerRight.Text.Replace('.', ','));
            }
            this.axFiScn1.EdgeFillerRight = edgeRight;
            this.axFiScn1.EdgeRepair = (bool)this.chkEdgeRepair.Checked;

        }
        //----------------------------------------------------------------------------
        //  Function    : Reading of the parameter information stored in the ini file
        //  Argument    : Nothing
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void InitialFileRead()
        {
            int topWnd;
            int leftWnd;

            StringBuilder strWork;
            int rcl;

            if(ModuleScan.strFilePath == null || ModuleScan.strFilePath.Equals("") == true)
            {
                //A default value is used when reading of a ini file goes wrong.
                DefaultSet();
                return;
            }
            
            try
            {
                //Display position information on a dialog
                leftWnd = ModuleScan.GetPrivateProfileInt("Form", "Left", -1, ModuleScan.strFilePath);
                topWnd = ModuleScan.GetPrivateProfileInt("Form", "Top", -1, ModuleScan.strFilePath);
                if(topWnd != -1)
                {
                    this.Top = topWnd;
                }
                if(leftWnd != -1)
                {
                    this.Left = leftWnd;
                }

                //Read configuration parameter
                this.cboScanTo.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "ScanToType", ModuleScan.TYPE_FILE, ModuleScan.strFilePath);
                this.cboFileType.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "FileType", ModuleScan.FILE_TIF, ModuleScan.strFilePath);
                strWork = new StringBuilder(ModuleScan.MAX_PATH);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "FileName", "", strWork, ModuleScan.MAX_PATH, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    this.txtFileName.Text = strWork.ToString();
                }
                else
                {
                    this.txtFileName.Text = ModuleScan.strDirPath + "\\image#####";
                }
                this.cboOverwrite.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "Overwrite", ModuleScan.OW_CONFIRM, ModuleScan.strFilePath);
                this.txtFileCounter.Text = ModuleScan.GetPrivateProfileInt("Scan", "FileCounter", 1, ModuleScan.strFilePath).ToString();
                this.cboCompType.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "CompressionType", ModuleScan.COMP_MMR, ModuleScan.strFilePath);
                this.cboJpegQuality.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "JpegQuality", ModuleScan.COMP_JPEG4, ModuleScan.strFilePath);
                this.cboScanMode.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "ScanMode", ModuleScan.SM_NORMAL, ModuleScan.strFilePath);
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "ScanContinue", 0, ModuleScan.strFilePath);
                if (rcl == 1)
                {
                    this.chkScanContinue.Checked = true;
                }
                else
                {
                    this.chkScanContinue.Checked = false;
                }
                this.cboPaperSupply.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "PaperSupply", ModuleScan.ADF, ModuleScan.strFilePath);
                this.txtScanCount.Text = ModuleScan.GetPrivateProfileInt("Scan", "ScanCount", -1, ModuleScan.strFilePath).ToString();
                this.cboPaperSize.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "PaperSize", ModuleScan.PSIZE_A4, ModuleScan.strFilePath);
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "LongPage", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkLongPage.Checked = true;
                }
                else
                {
                    this.chkLongPage.Checked = false;
                }
                this.cboOrientation.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "Orientation", ModuleScan.PORTRAIT, ModuleScan.strFilePath);
                this.cboUnit.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "Unit", 0, ModuleScan.strFilePath);
                strWork = new StringBuilder(10);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "CustomPaperWidth", "8.268", strWork, 10, ModuleScan.strFilePath);
                if (rcl > 0)
                {
                    this.txtCustomPaperWidth.Text = strWork.ToString();
                }
                else
                {
                    this.txtCustomPaperWidth.Text = "8.268";
                }
                strWork = new StringBuilder(10);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "CustomPaperLength", "11.693", strWork, 10, ModuleScan.strFilePath);
                if (rcl > 0)
                {
                    this.txtCustomPaperLength.Text = strWork.ToString();
                }
                else
                {
                    this.txtCustomPaperLength.Text = "11.693";
                }
                strWork = new StringBuilder(10);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "RegionLeft", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0) 
                {
                    txtRegionLeft.Text = strWork.ToString();
                }
                else
                {
                    txtRegionLeft.Text = "0";
                }
                strWork = new StringBuilder(10);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "RegionTop", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0) 
                {
                    txtRegionTop.Text = strWork.ToString();
                }
                else
                {
                    txtRegionTop.Text = "0";
                }
                strWork = new StringBuilder(10);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "RegionWidth", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0) 
                {
                    txtRegionWidth.Text = strWork.ToString();
                }
                else
                {
                    txtRegionWidth.Text = "0";
                }
                strWork = new StringBuilder(10);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "RegionLength", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0) 
                {
                    txtRegionLength.Text = strWork.ToString();
                }
                else
                {
                    txtRegionLength.Text = "0";
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "UndefinedScanning", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkUndefinedScanning.Checked = true;
                }
                else
                {
                    this.chkUndefinedScanning.Checked = false;
                }
                this.cboBackgroundColor.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "BackgroundColor", 0, ModuleScan.strFilePath);
                this.cboPixelType.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "PixelType", ModuleScan.PIXEL_BLACK_WHITE, ModuleScan.strFilePath);
                this.cboResolution.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "Resolution", ModuleScan.RS_300, ModuleScan.strFilePath);
                this.txtCustomResolution.Text = ModuleScan.GetPrivateProfileInt("Scan", "CustomResolution", 300, ModuleScan.strFilePath).ToString();
                this.txtBrightness.Text = ModuleScan.GetPrivateProfileInt("Scan", "Brightness", 128, ModuleScan.strFilePath).ToString();
                this.txtContrast.Text = ModuleScan.GetPrivateProfileInt("Scan", "Contrast", 128, ModuleScan.strFilePath).ToString();
                this.txtThreshold.Text = ModuleScan.GetPrivateProfileInt("Scan", "Threshold", 128, ModuleScan.strFilePath).ToString();
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "Reverse", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkReverse.Checked = true;
                }
                else
                {
                    this.chkReverse.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "Mirroring", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkMirroring.Checked = true;
                }
                else
                {
                    this.chkMirroring.Checked = false;
                }
                this.cboRotation.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "Rotation", ModuleScan.RT_NONE, ModuleScan.strFilePath);
                this.cboBackground.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "Background", ModuleScan.MODE_OFF, ModuleScan.strFilePath);
                this.cboOutline.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "Outline", ModuleScan.NONE, ModuleScan.strFilePath);
                this.cboHalftone.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "Halftone", ModuleScan.NONE, ModuleScan.strFilePath);
                strWork = new StringBuilder(ModuleScan.MAX_PATH);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "HalftoneFile", "", strWork, ModuleScan.MAX_PATH, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    this.txtHalftoneFile.Text = strWork.ToString();
                }
                this.cboGamma.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "Gamma", ModuleScan.NONE, ModuleScan.strFilePath);
                strWork = new StringBuilder(ModuleScan.MAX_PATH);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "GammaFile", "", strWork, ModuleScan.MAX_PATH, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    this.txtGammaFile.Text = strWork.ToString();
                }
                strWork = new StringBuilder(10);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "CustomGamma", "2.2", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    this.txtCustomGamma.Text = strWork.ToString();
                }
                else
                {
                    this.txtCustomGamma.Text = "2.2";
                }
                this.cboAutoSeparation.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "Separation", ModuleScan.AS_OFF, ModuleScan.strFilePath);
                this.cboSEE.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "SEE", ModuleScan.SEE_OFF, ModuleScan.strFilePath);
                this.cboThresholdCurve.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "ThresholdCurve", ModuleScan.TH_CURVE1, ModuleScan.strFilePath);
                this.cboNoiseRemoval.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "NoiseRemoval", ModuleScan.NONE, ModuleScan.strFilePath);
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "PreFiltering", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkPreFiltering.Checked = true;
                }
                else
                {
                    this.chkPreFiltering.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "Smoothing", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkSmoothing.Checked = true;
                }
                else
                {
                    this.chkSmoothing.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "Endorser", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkEndorser.Checked = true;
                }
                else
                {
                    this.chkEndorser.Checked = false;
                    this.txtEndorserCounter.Enabled = false;
                    this.txtEndorserString.Enabled = false;
                    this.txtEndorserOffset.Enabled = false;
                    this.cboEndorserDirection.Enabled = false;
                    this.cboEndorserCountStep.Enabled = false;
                    this.cboEndorserCountDirection.Enabled = false;
                    this.cboEndorserFont.Enabled = false;
                    this.chkSynchronizationDigitalEndorser.Enabled = false;
                }
                this.txtEndorserCounter.Text = ModuleScan.GetPrivateProfileInt("Scan", "EndorserCounter", 0, ModuleScan.strFilePath).ToString();
                strWork = new StringBuilder(50);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "EndorserString", "", strWork, 50, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    this.txtEndorserString.Text = strWork.ToString();
                }
                strWork = new StringBuilder(10);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "EndorserOffset", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    txtEndorserOffset.Text = strWork.ToString();
                }
                else
                {
                    txtEndorserOffset.Text = "0";
                }
                this.cboEndorserDirection.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "EndorserDirection", 0, ModuleScan.strFilePath);
                this.cboEndorserCountStep.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "EndorserCountStep", 1, ModuleScan.strFilePath);
                this.cboEndorserCountDirection.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "EndorserCountDirection", 0, ModuleScan.strFilePath);
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "DigitalEndorser", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkDigitalEndorser.Checked = true;
                }
                else
                {
                    this.chkDigitalEndorser.Checked = false;
                    this.txtDigitalEndorserCounter.Enabled = false;
                    this.txtDigitalEndorserString.Enabled = false;
                    this.txtDigitalEndorserXOffset.Enabled = false;
                    this.txtDigitalEndorserYOffset.Enabled = false;
                    this.cboDigitalEndorserCountStep.Enabled = false;
                    this.cboDigitalEndorserCountDirection.Enabled = false;
                }
                this.txtDigitalEndorserCounter.Text = ModuleScan.GetPrivateProfileInt("Scan", "DigitalEndorserCounter", 0, ModuleScan.strFilePath).ToString();
                strWork = new StringBuilder(50);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "DigitalEndorserString", "", strWork, 50, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    this.txtDigitalEndorserString.Text = strWork.ToString();
                }
                strWork = new StringBuilder(10);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "DigitalEndorserXOffset", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    txtDigitalEndorserXOffset.Text = strWork.ToString();
                }
                else
                {
                    txtDigitalEndorserXOffset.Text = "0";
                }
                strWork = new StringBuilder(10);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "DigitalEndorserYOffset", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    txtDigitalEndorserYOffset.Text = strWork.ToString();
                }
                else
                {
                    txtDigitalEndorserYOffset.Text = "0";
                }
                this.cboDigitalEndorserCountStep.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "DigitalEndorserCountStep", 1, ModuleScan.strFilePath);
                this.cboDigitalEndorserCountDirection.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "DigitalEndorserCountDirection", 0, ModuleScan.strFilePath);
                

                rcl = ModuleScan.GetPrivateProfileInt("Scan", "SynchronizationDigitalEndorser", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkSynchronizationDigitalEndorser.Checked = true;
                }
                else
                {
                    this.chkSynchronizationDigitalEndorser.Checked = false;
                }
                this.cboJobControl.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "JobControl", 0, ModuleScan.strFilePath);
                this.cboBinding.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "Binding", 0, ModuleScan.strFilePath);
                this.cboMultiFeed.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "DoubleFeed", 0, ModuleScan.strFilePath);
                this.cboFilter.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "Filter", ModuleScan.FILTER_GREEN, ModuleScan.strFilePath);
                this.txtFilterSaturationSensitivity.Text = ModuleScan.GetPrivateProfileInt("Scan", "FilterSaturationSensitivity", 50, ModuleScan.strFilePath).ToString();
                this.txtSkipWhitePage.Text = ModuleScan.GetPrivateProfileInt("Scan", "SkipWhitePage", 0, ModuleScan.strFilePath).ToString();
                this.txtSkipBlackPage.Text = ModuleScan.GetPrivateProfileInt("Scan", "SkipBlackPage", 0, ModuleScan.strFilePath).ToString();
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "AutoBorderDetection", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkAutoBorderDetection.Checked = true;
                }
                else
                {
                    this.chkAutoBorderDetection.Checked = false;
                }
                this.cboBlankPageNotice.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "BlankPageNotice", 0, ModuleScan.strFilePath);
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "HwCompression", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkHwCompression.Checked = true;
                }
                else
                {
                    this.chkHwCompression.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "ShowSourceUI", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.MenuItemShowSourceUI.Checked = true;
                }
                else
                {
                    this.MenuItemShowSourceUI.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "CloseSourceUI", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.MenuItemCloseSourceUI.Checked = true;
                }
                else
                {
                    this.MenuItemCloseSourceUI.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "SourceCurrentScan", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.MenuItemSourceCurrentScan.Checked = true;
                }
                else
                {
                    this.MenuItemSourceCurrentScan.Checked = false;
                }
                this.MenuItemTWAINTemplate.Enabled = this.MenuItemSourceCurrentScan.Checked;
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "SilentMode", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.MenuItemSilentMode.Checked = true;
                }
                else
                {
                    this.MenuItemSilentMode.Checked = false;
                }
                ModuleScan.intReport = ModuleScan.GetPrivateProfileInt("Scan", "Report", ModuleScan.RP_OFF, ModuleScan.strFilePath);
                this.MenuItemReportOFF.Checked = false;
                this.MenuItemReportDisplay.Checked = false;
                this.MenuItemReportFile.Checked = false;
                this.MenuItemReportBoth.Checked = false;
                if(ModuleScan.intReport == 0)
                {
                    this.MenuItemReportOFF.Checked = true;
                }
                else if(ModuleScan.intReport == 1)
                {
                    this.MenuItemReportDisplay.Checked = true;
                }
                else if(ModuleScan.intReport == 2)
                {
                    this.MenuItemReportFile.Checked = true;
                }
                else
                {
                    this.MenuItemReportBoth.Checked = true;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "Indicator", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.MenuItemIndicator.Checked = true;
                }
                else
                {
                    this.MenuItemIndicator.Checked = false;
                }
                this.txtHighlight.Text = ModuleScan.GetPrivateProfileInt("Scan", "Highlight", 230, ModuleScan.strFilePath).ToString();
                this.txtShadow.Text = ModuleScan.GetPrivateProfileInt("Scan", "Shadow", 10, ModuleScan.strFilePath).ToString();
                this.cboOverScan.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "OverScan", 0, ModuleScan.strFilePath);
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "AutomaticSenseMedium", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkAutomaticSenseMedium.Checked = true;
                }
                else
                {
                    this.chkAutomaticSenseMedium.Checked = false;
                }
                this.cboBackgroundSmoothing.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "BackgroundSmoothing", 0, ModuleScan.strFilePath);
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "AutoBright", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkAutoBright.Checked = true;
                }
                else
                {
                    this.chkAutoBright.Checked = false;
                }
                this.cboEndorserFont.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "EndorserFont", ModuleScan.EDF_HORIZONTAL, ModuleScan.strFilePath);
                this.cboJobControlMode.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "JobControlMode", ModuleScan.JCM_SPECIAL_DOCUMENT, ModuleScan.strFilePath);
                this.txtBlankPageSkip.Text = ModuleScan.GetPrivateProfileInt("Scan", "BlankPageSkip", 0, ModuleScan.strFilePath).ToString();
                this.txtDTCSensitivity.Text = ModuleScan.GetPrivateProfileInt("Scan", "DTCSensitivity", 50, ModuleScan.strFilePath).ToString();
                this.txtBackgroundThreshold.Text = ModuleScan.GetPrivateProfileInt("Scan", "BackgroundThreshold", 50, ModuleScan.strFilePath).ToString();
                this.txtCharacterThickness.Text = ModuleScan.GetPrivateProfileInt("Scan", "CharacterThickness", 5, ModuleScan.strFilePath).ToString();
                this.txtSDTCSensitivity.Text = ModuleScan.GetPrivateProfileInt("Scan", "SDTCSensitivity", 2, ModuleScan.strFilePath).ToString();
                this.txtNoiseRejection.Text = ModuleScan.GetPrivateProfileInt("Scan", "NoiseRejection", 0, ModuleScan.strFilePath).ToString();
                this.txtADTCThreshold.Text = ModuleScan.GetPrivateProfileInt("Scan", "ADTCThreshold", 83, ModuleScan.strFilePath).ToString();
                this.txtFadingCompensation.Text = ModuleScan.GetPrivateProfileInt("Scan", "FadingCompensation", 0, ModuleScan.strFilePath).ToString();
                this.cboSharpness.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "Sharpness", ModuleScan.SH_NONE, ModuleScan.strFilePath);
                this.cboPunchHoleRemoval.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "PunchHoleRemoval", ModuleScan.PHR_DO_NOT_REMOVE, ModuleScan.strFilePath);
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "sRGB", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chksRGB.Checked = true;
                }
                else
                {
                    this.chksRGB.Checked = false;
                }
                this.cboPatternRemoval.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "PatternRemoval", 1, ModuleScan.strFilePath);
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "VerticalLineReduction", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkVerticalLineReduction.Checked = true;
                }
                else
                {
                    this.chkVerticalLineReduction.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "AIQCNotice", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkAIQCNotice.Checked = true;
                }
                else
                {
                    this.chkAIQCNotice.Checked = false;
                }
                this.txtBackgroundSmoothness.Text = ModuleScan.GetPrivateProfileInt("Scan", "BackgroundSmoothness", 5, ModuleScan.strFilePath).ToString();
                this.cboCropPriority.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "CropPriority", 0, ModuleScan.strFilePath);
                this.cboDeskew.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "Deskew", 2, ModuleScan.strFilePath);
                strWork = new StringBuilder(10);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "CropMarginSize", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    this.txtCropMarginSize.Text = strWork.ToString();
                }
                else
                {
                    this.txtCropMarginSize.Text = "0";
                }
                strWork = new StringBuilder(10);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "MultiFeedModeChangeSize", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    this.txtMultiFeedModeChangeSize.Text = strWork.ToString();
                }
                else
                {
                    this.txtMultiFeedModeChangeSize.Text = "0";
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "BarcodeDetection", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkBarcodeDetection.Checked = true;
                }
                else
                {
                    this.chkBarcodeDetection.Checked = false;
                    this.cboBarcodeDirection.Enabled = false;
                    this.txtBarcodeRegionLeft.Enabled = false;
                    this.txtBarcodeRegionTop.Enabled = false;
                    this.txtBarcodeRegionWidth.Enabled = false;
                    this.txtBarcodeRegionLength.Enabled = false;
                    this.chkEAN8.Enabled = false;
                    this.chkEAN13.Enabled = false;
                    this.chkCode3of9.Enabled = false;
                    this.chkCode128.Enabled = false;
                    this.chkITF.Enabled = false;
                    this.chkUPCA.Enabled = false;
                    this.chkCodabar.Enabled = false;
                    this.chkPDF417.Enabled = false;
                    this.chkQRCode.Enabled = false;
                    this.chkDataMatrix.Enabled = false;
                    this.txtBarcodeMaxSearchPriorities.Enabled = false;
                }
                this.cboBarcodeDirection.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "BarcodeDirection", ModuleScan.BD_HORIZONTAL_VERTICAL, ModuleScan.strFilePath);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "BarcodeRegionLeft", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    txtBarcodeRegionLeft.Text = strWork.ToString();
                }
                else
                {
                    txtBarcodeRegionLeft.Text = "0";
                }
                rcl = ModuleScan.GetPrivateProfileString("Scan", "BarcodeRegionTop", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    txtBarcodeRegionTop.Text = strWork.ToString();
                }
                else
                {
                    txtBarcodeRegionTop.Text = "0";
                }
                rcl = ModuleScan.GetPrivateProfileString("Scan", "BarcodeRegionWidth", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    txtBarcodeRegionWidth.Text = strWork.ToString();
                }
                else
                {
                    txtBarcodeRegionWidth.Text = "0";
                }
                rcl = ModuleScan.GetPrivateProfileString("Scan", "BarcodeRegionLength", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    txtBarcodeRegionLength.Text = strWork.ToString();
                }
                else
                {
                    txtBarcodeRegionLength.Text = "0";
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "BarcodeType_EAN8", 1, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkEAN8.Checked = true;
                }
                else
                {
                    this.chkEAN8.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "BarcodeType_EAN13", 1, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkEAN13.Checked = true;
                }
                else
                {
                    this.chkEAN13.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "BarcodeType_Code3of9", 1, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkCode3of9.Checked = true;
                }
                else
                {
                    this.chkCode3of9.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "BarcodeType_Code128", 1, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkCode128.Checked = true;
                }
                else
                {
                    this.chkCode128.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "BarcodeType_ITF", 1, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkITF.Checked = true;
                }
                else
                {
                    this.chkITF.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "BarcodeType_UPC-A", 1, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkUPCA.Checked = true;
                }
                else
                {
                    this.chkUPCA.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "BarcodeType_Codabar", 1, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkCodabar.Checked = true;
                }
                else
                {
                    this.chkCodabar.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "BarcodeType_PDF417", 1, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkPDF417.Checked = true;
                }
                else
                {
                    this.chkPDF417.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "BarcodeType_QRCode", 1, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkQRCode.Checked = true;
                }
                else
                {
                    this.chkQRCode.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "BarcodeType_DataMatrix", 0, ModuleScan.strFilePath);
                if (rcl == 1)
                {
                    this.chkDataMatrix.Checked = true;
                }
                else
                {
                    this.chkDataMatrix.Checked = false;
                }
                this.txtBarcodeMaxSearchPriorities.Text = ModuleScan.GetPrivateProfileInt("Scan", "BarcodeMaxSearchPriorities", 1, ModuleScan.strFilePath).ToString();

                rcl = ModuleScan.GetPrivateProfileInt("Scan", "PatchCodeDetection", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkPatchCodeDetection.Checked = true;
                }
                else
                {
                    this.chkPatchCodeDetection.Checked = false;
                }
                this.cboPatchCodeDirection.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "PatchCodeDirection", ModuleScan.PD_VERTICAL, ModuleScan.strFilePath);
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "PatchCodeType_Patch1", 1, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkPatch1.Checked = true;
                }
                else
                {
                    this.chkPatch1.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "PatchCodeType_Patch2", 1, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkPatch2.Checked = true;
                }
                else
                {
                    this.chkPatch2.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "PatchCodeType_Patch3", 1, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkPatch3.Checked = true;
                }
                else
                {
                    this.chkPatch3.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "PatchCodeType_Patch4", 1, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkPatch4.Checked = true;
                }
                else
                {
                    this.chkPatch4.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "PatchCodeType_Patch6", 1, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkPatch6.Checked = true;
                }
                else
                {
                    this.chkPatch6.Checked = false;
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "PatchCodeType_PatchT", 1, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkPatchT.Checked = true;
                }
                else
                {
                    this.chkPatchT.Checked = false;
                }

                this.cboEdgeFiller.SelectedIndex = ModuleScan.GetPrivateProfileInt("Scan", "EdgeFiller", ModuleScan.EF_OFF, ModuleScan.strFilePath);
                rcl = ModuleScan.GetPrivateProfileString("Scan", "EdgeFillerTop", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    txtEdgeFillerTop.Text = strWork.ToString();
                }
                else
                {
                    txtEdgeFillerTop.Text = "0";
                }
                rcl = ModuleScan.GetPrivateProfileString("Scan", "EdgeFillerBottom", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    txtEdgeFillerBottom.Text = strWork.ToString();
                }
                else
                {
                    txtEdgeFillerBottom.Text = "0";
                }
                rcl = ModuleScan.GetPrivateProfileString("Scan", "EdgeFillerLeft", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    txtEdgeFillerLeft.Text = strWork.ToString();
                }
                else
                {
                    txtEdgeFillerLeft.Text = "0";
                }
                rcl = ModuleScan.GetPrivateProfileString("Scan", "EdgeFillerRight", "0", strWork, 10, ModuleScan.strFilePath);
                if(rcl > 0)
                {
                    txtEdgeFillerRight.Text = strWork.ToString();
                }
                else
                {
                    txtEdgeFillerRight.Text = "0";
                }
                rcl = ModuleScan.GetPrivateProfileInt("Scan", "EdgeRepair", 0, ModuleScan.strFilePath);
                if(rcl == 1)
                {
                    this.chkEdgeRepair.Checked = true;
                }
                else
                {
                    this.chkEdgeRepair.Checked = false;
                }

                ModuleScan.bInitialFileRead = true;
                CarrierSheetSet();
            }
            catch (System.Exception)
            {
                //A default value is used when reading of a ini file goes wrong.
                DefaultSet();
            }
            
        }

        //----------------------------------------------------------------------------
        //  Function    : Writing to the ini file of parameter information
        //  Argument    : Nothing
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void  WriteScanINIFile()
        {
            if(ModuleScan.strFilePath == null || ModuleScan.strFilePath.Equals("") == true)
            {
                MessageBox.Show("It cannot write in a file.", "fiScanTest");
                return;
            }

            try
            {
                //Display position information on a dialog
                ModuleScan.WritePrivateProfileString("Form", "Left", this.Left.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Form", "Top", this.Top.ToString(), ModuleScan.strFilePath);

                //Write configuration parameter
                ModuleScan.WritePrivateProfileString("Scan", "ScanToType", this.cboScanTo.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "FileType", this.cboFileType.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "FileName", this.txtFileName.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "Overwrite", this.cboOverwrite.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "FileCounter", this.txtFileCounter.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "CompressionType", this.cboCompType.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "JpegQuality", this.cboJpegQuality.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "ScanMode", this.cboScanMode.SelectedIndex.ToString(), ModuleScan.strFilePath);
                if (this.chkScanContinue.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "ScanContinue", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "ScanContinue", "0", ModuleScan.strFilePath);
                }
                ModuleScan.WritePrivateProfileString("Scan", "PaperSupply", this.cboPaperSupply.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "ScanCount", this.txtScanCount.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "PaperSize", this.cboPaperSize.SelectedIndex.ToString(), ModuleScan.strFilePath);
                if(this.chkLongPage.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "LongPage", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "LongPage", "0", ModuleScan.strFilePath);
                }
                ModuleScan.WritePrivateProfileString("Scan", "Orientation", this.cboOrientation.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "CustomPaperWidth", double.Parse(this.txtCustomPaperWidth.Text).ToString("F3"), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "CustomPaperLength", double.Parse(this.txtCustomPaperLength.Text).ToString("F3"), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "RegionLeft", double.Parse(this.txtRegionLeft.Text).ToString("F3"), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "RegionTop", double.Parse(this.txtRegionTop.Text).ToString("F3"), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "RegionWidth", double.Parse(this.txtRegionWidth.Text).ToString("F3"), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "RegionLength", double.Parse(this.txtRegionLength.Text).ToString("F3"), ModuleScan.strFilePath);
                if(chkUndefinedScanning.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "UndefinedScanning", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "UndefinedScanning", "0", ModuleScan.strFilePath);
                }
                ModuleScan.WritePrivateProfileString("Scan", "BackgroundColor", this.cboBackgroundColor.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "PixelType", this.cboPixelType.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "Resolution", this.cboResolution.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "CustomResolution", this.txtCustomResolution.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "Brightness", this.txtBrightness.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "Contrast", this.txtContrast.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "Threshold", this.txtThreshold.Text, ModuleScan.strFilePath);
                if(this.chkReverse.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "Reverse", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "Reverse", "0", ModuleScan.strFilePath);
                }
                if(chkMirroring.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "Mirroring", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "Mirroring", "0", ModuleScan.strFilePath);
                }
                ModuleScan.WritePrivateProfileString("Scan", "Rotation", this.cboRotation.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "Background", this.cboBackground.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "Outline", this.cboOutline.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "Halftone", this.cboHalftone.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "HalftoneFile", this.txtHalftoneFile.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "Gamma", this.cboGamma.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "GammaFile", this.txtGammaFile.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "CustomGamma", this.txtCustomGamma.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "AutoSeparation", this.cboAutoSeparation.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "SEE", this.cboSEE.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "ThresholdCurve", this.cboThresholdCurve.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "NoiseRemoval", this.cboNoiseRemoval.SelectedIndex.ToString(), ModuleScan.strFilePath);
                if(this.chkPreFiltering.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "PreFiltering", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "PreFiltering", "0", ModuleScan.strFilePath);
                }
                if(this.chkSmoothing.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "Smoothing", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "Smoothing", "0", ModuleScan.strFilePath);
                }
                if(this.chkEndorser.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "Endorser", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "Endorser", "0", ModuleScan.strFilePath);
                }

                ModuleScan.WritePrivateProfileString("Scan", "EndorserCounter", this.txtEndorserCounter.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "EndorserString", this.txtEndorserString.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "EndorserOffset", double.Parse(this.txtEndorserOffset.Text).ToString("F3"), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "EndorserDirection", this.cboEndorserDirection.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "EndorserCountStep", this.cboEndorserCountStep.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "EndorserCountDirection", this.cboEndorserCountDirection.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "EndorserFont", this.cboEndorserFont.SelectedIndex.ToString(), ModuleScan.strFilePath);
                if(this.chkSynchronizationDigitalEndorser.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "SynchronizationDigitalEndorser", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "SynchronizationDigitalEndorser", "0", ModuleScan.strFilePath);
                }
                if(this.chkDigitalEndorser.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "DigitalEndorser", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "DigitalEndorser", "0", ModuleScan.strFilePath);
                }
                ModuleScan.WritePrivateProfileString("Scan", "DigitalEndorserCounter", this.txtDigitalEndorserCounter.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "DigitalEndorserString", this.txtDigitalEndorserString.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "DigitalEndorserXOffset", double.Parse(this.txtDigitalEndorserXOffset.Text).ToString("F3"), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "DigitalEndorserYOffset", double.Parse(this.txtDigitalEndorserYOffset.Text).ToString("F3"), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "DigitalEndorserCountStep", this.cboDigitalEndorserCountStep.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "DigitalEndorserCountDirection", this.cboDigitalEndorserCountDirection.SelectedIndex.ToString(), ModuleScan.strFilePath);

                ModuleScan.WritePrivateProfileString("Scan", "JobControl", this.cboJobControl.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "Binding", this.cboBinding.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "DoubleFeed", this.cboMultiFeed.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "Filter", this.cboFilter.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "FilterSaturationSensitivity", this.txtFilterSaturationSensitivity.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "SkipWhitePage", this.txtSkipWhitePage.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "SkipBlackPage", this.txtSkipBlackPage.Text, ModuleScan.strFilePath);
                if(this.chkAutomaticSenseMedium.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "AutomaticSenseMedium", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "AutomaticSenseMedium", "0", ModuleScan.strFilePath);
                }
                if(this.chkAutoBright.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "AutoBright", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "AutoBright", "0", ModuleScan.strFilePath);
                }
                ModuleScan.WritePrivateProfileString("Scan", "BackgroundSmoothing", this.cboBackgroundSmoothing.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "BlankPageSkip", this.txtBlankPageSkip.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "JobControlMode", this.cboJobControlMode.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "DTCSensitivity", this.txtDTCSensitivity.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "BackgroundThreshold", this.txtBackgroundThreshold.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "CharacterThickness", this.txtCharacterThickness.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "SDTCSensitivity", this.txtSDTCSensitivity.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "NoiseRejection", this.txtNoiseRejection.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "ADTCThreshold", this.txtADTCThreshold.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "FadingCompensation", this.txtFadingCompensation.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "Sharpness", this.cboSharpness.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "PunchHoleRemoval", this.cboPunchHoleRemoval.SelectedIndex.ToString(), ModuleScan.strFilePath);
                if(this.chksRGB.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "sRGB", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "sRGB", "0", ModuleScan.strFilePath);
                }
                ModuleScan.WritePrivateProfileString("Scan", "PatternRemoval", this.cboPatternRemoval.SelectedIndex.ToString(), ModuleScan.strFilePath);
                if(this.chkVerticalLineReduction.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "VerticalLineReduction", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "VerticalLineReduction", "0", ModuleScan.strFilePath);
                }
                if(this.chkAIQCNotice.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "AIQCNotice", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "AIQCNotice", "0", ModuleScan.strFilePath);
                }
                ModuleScan.WritePrivateProfileString("Scan", "BackgroundSmoothness", this.txtBackgroundSmoothness.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "CropPriority", this.cboCropPriority.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "Deskew", this.cboDeskew.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "CropMarginSize", double.Parse(this.txtCropMarginSize.Text).ToString("F1"), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "MultiFeedModeChangeSize", double.Parse(this.txtMultiFeedModeChangeSize.Text).ToString("F3"), ModuleScan.strFilePath);

                if(this.chkAutoBorderDetection.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "AutoBorderDetection", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "AutoBorderDetection", "0", ModuleScan.strFilePath);
                }
                ModuleScan.WritePrivateProfileString("Scan", "BlankPageNotice", this.cboBlankPageNotice.SelectedIndex.ToString(), ModuleScan.strFilePath);
                if (this.chkHwCompression.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "HwCompression", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "HwCompression", "0", ModuleScan.strFilePath);
                }

                if(this.MenuItemShowSourceUI.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "ShowSourceUI", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "ShowSourceUI", "0", ModuleScan.strFilePath);
                }
                if(this.MenuItemCloseSourceUI.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "CloseSourceUI", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "CloseSourceUI", "0", ModuleScan.strFilePath);
                }
                if(this.MenuItemSourceCurrentScan.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "SourceCurrentScan", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "SourceCurrentScan", "0", ModuleScan.strFilePath);
                }
                if(this.MenuItemSilentMode.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "SilentMode", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "SilentMode", "0", ModuleScan.strFilePath);
                }
                ModuleScan.WritePrivateProfileString("Scan", "Report", ModuleScan.intReport.ToString(), ModuleScan.strFilePath);
                if(this.MenuItemIndicator.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "Indicator", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "Indicator", "0", ModuleScan.strFilePath);
                }
                ModuleScan.WritePrivateProfileString("Scan", "Highlight", txtHighlight.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "Shadow", txtShadow.Text, ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "OverScan", cboOverScan.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "Unit", cboUnit.SelectedIndex.ToString(), ModuleScan.strFilePath);

                if(this.chkBarcodeDetection.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeDetection", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeDetection", "0", ModuleScan.strFilePath);
                }
                ModuleScan.WritePrivateProfileString("Scan", "BarcodeDirection", this.cboBarcodeDirection.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "BarcodeRegionLeft", double.Parse(this.txtBarcodeRegionLeft.Text).ToString("F3"), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "BarcodeRegionTop", double.Parse(this.txtBarcodeRegionTop.Text).ToString("F3"), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "BarcodeRegionWidth", double.Parse(this.txtBarcodeRegionWidth.Text).ToString("F3"), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "BarcodeRegionLength", double.Parse(this.txtBarcodeRegionLength.Text).ToString("F3"), ModuleScan.strFilePath);
                if(this.chkEAN8.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_EAN8", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_EAN8", "0", ModuleScan.strFilePath);
                }
                if(this.chkEAN13.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_EAN13", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_EAN13", "0", ModuleScan.strFilePath);
                }
                if(this.chkCode3of9.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_Code3of9", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_Code3of9", "0", ModuleScan.strFilePath);
                }
                if(this.chkCode128.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_Code128", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_Code128", "0", ModuleScan.strFilePath);
                }
                if(this.chkITF.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_ITF", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_ITF", "0", ModuleScan.strFilePath);
                }
                if(this.chkUPCA.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_UPC-A", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_UPC-A", "0", ModuleScan.strFilePath);
                }
                if(this.chkCodabar.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_Codabar", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_Codabar", "0", ModuleScan.strFilePath);
                }
                if(this.chkPDF417.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_PDF417", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_PDF417", "0", ModuleScan.strFilePath);
                }
                if(this.chkQRCode.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_QRCode", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_QRCode", "0", ModuleScan.strFilePath);
                }
                if (this.chkDataMatrix.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_DataMatrix", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "BarcodeType_DataMatrix", "0", ModuleScan.strFilePath);
                }
                ModuleScan.WritePrivateProfileString("Scan", "BarcodeMaxSearchPriorities", this.txtBarcodeMaxSearchPriorities.Text, ModuleScan.strFilePath);

                if(this.chkPatchCodeDetection.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "PatchCodeDetection", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "PatchCodeDetection", "0", ModuleScan.strFilePath);
                }
                ModuleScan.WritePrivateProfileString("Scan", "PatchCodeDirection", this.cboPatchCodeDirection.SelectedIndex.ToString(), ModuleScan.strFilePath);
                if(this.chkPatch1.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "PatchCodeType_Patch1", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "PatchCodeType_Patch1", "0", ModuleScan.strFilePath);
                }
                if(this.chkPatch2.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "PatchCodeType_Patch2", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "PatchCodeType_Patch2", "0", ModuleScan.strFilePath);
                }
                if(this.chkPatch3.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "PatchCodeType_Patch3", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "PatchCodeType_Patch3", "0", ModuleScan.strFilePath);
                }
                if(this.chkPatch4.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "PatchCodeType_Patch4", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "PatchCodeType_Patch4", "0", ModuleScan.strFilePath);
                }
                if(this.chkPatch6.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "PatchCodeType_Patch6", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "PatchCodeType_Patch6", "0", ModuleScan.strFilePath);
                }
                if(this.chkPatchT.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "PatchCodeType_PatchT", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "PatchCodeType_PatchT", "0", ModuleScan.strFilePath);
                }

                ModuleScan.WritePrivateProfileString("Scan", "EdgeFiller", this.cboEdgeFiller.SelectedIndex.ToString(), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "EdgeFillerTop", double.Parse(this.txtEdgeFillerTop.Text).ToString("F3"), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "EdgeFillerBottom", double.Parse(this.txtEdgeFillerBottom.Text).ToString("F3"), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "EdgeFillerLeft", double.Parse(this.txtEdgeFillerLeft.Text).ToString("F3"), ModuleScan.strFilePath);
                ModuleScan.WritePrivateProfileString("Scan", "EdgeFillerRight", double.Parse(this.txtEdgeFillerRight.Text).ToString("F3"), ModuleScan.strFilePath);
                if(this.chkEdgeRepair.Checked == true)
                {
                    ModuleScan.WritePrivateProfileString("Scan", "EdgeRepair", "1", ModuleScan.strFilePath);
                }
                else
                {
                    ModuleScan.WritePrivateProfileString("Scan", "EdgeRepair", "0", ModuleScan.strFilePath);
                }

            }
            catch (System.Exception)
            {
                MessageBox.Show("It cannot write in a file.", "fiScanTest");
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : A default value is used when reading of a ini file goes wrong
        //   Argument    : Nothing
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void DefaultSet()
        {
            this.cboScanTo.SelectedIndex = ModuleScan.TYPE_FILE;
            this.cboFileType.SelectedIndex = ModuleScan.FILE_TIF;
            this.txtFileName.Text = ModuleScan.strDirPath + "\\image#####";
            this.cboOverwrite.SelectedIndex = ModuleScan.OW_CONFIRM;
            this.txtFileCounter.Text = "1";
            this.cboCompType.SelectedIndex = ModuleScan.COMP_MMR;
            this.cboJpegQuality.SelectedIndex = ModuleScan.COMP_JPEG4;
            this.cboScanMode.SelectedIndex = ModuleScan.SM_NORMAL;
            this.chkScanContinue.Checked = false;
            this.cboPaperSupply.SelectedIndex = ModuleScan.ADF;
            this.txtScanCount.Text = "-1";
            this.cboPaperSize.SelectedIndex = ModuleScan.PSIZE_A4;
            this.chkLongPage.Checked = false;
            this.cboOrientation.SelectedIndex = ModuleScan.PORTRAIT;
            this.txtCustomPaperWidth.Text = "8.268";
            this.txtCustomPaperLength.Text = "11.693";
            this.txtRegionLeft.Text = "0";
            this.txtRegionTop.Text = "0";
            this.txtRegionWidth.Text = "0";
            this.txtRegionLength.Text = "0";
            this.chkUndefinedScanning.Checked = false;
            this.cboBackgroundColor.SelectedIndex = ModuleScan.NONE;
            this.cboPixelType.SelectedIndex = ModuleScan.PIXEL_BLACK_WHITE;
            this.cboResolution.SelectedIndex = ModuleScan.RS_300;
            this.txtCustomResolution.Text = "300";
            this.txtBrightness.Text = "128";
            this.txtContrast.Text = "128";
            this.txtThreshold.Text = "128";
            this.chkReverse.Checked = false;
            this.chkMirroring.Checked = false;
            this.cboRotation.SelectedIndex = ModuleScan.RT_NONE;
            this.cboBackground.SelectedIndex = ModuleScan.MODE_OFF;
            this.cboOutline.SelectedIndex = ModuleScan.NONE;
            this.cboHalftone.SelectedIndex = ModuleScan.NONE;
            this.txtHalftoneFile.Text = "";
            this.cboGamma.SelectedIndex = ModuleScan.NONE;
            this.txtGammaFile.Text = "";
            this.txtCustomGamma.Text = "2.2";
            this.cboAutoSeparation.SelectedIndex = ModuleScan.AS_OFF;
            this.cboSEE.SelectedIndex = ModuleScan.SEE_OFF;
            this.chkVerticalLineReduction.Checked = false;
            this.cboThresholdCurve.SelectedIndex = ModuleScan.TH_CURVE1;
            this.cboNoiseRemoval.SelectedIndex = 0;
            this.chkPreFiltering.Checked = false;
            this.chkSmoothing.Checked = false;
            this.chkAIQCNotice.Checked = false;
            this.txtBackgroundSmoothness.Text = "5";
            this.cboCropPriority.SelectedIndex = 0;
            this.cboDeskew.SelectedIndex = 2;
            this.txtCropMarginSize.Text = "0";
            this.txtMultiFeedModeChangeSize.Text = "0";
            this.chkEndorser.Checked = false;
            this.txtEndorserCounter.Text = "0";
            this.txtEndorserString.Text = "";
            this.txtEndorserOffset.Text = "0";
            this.cboEndorserDirection.SelectedIndex = 1;
            this.cboEndorserCountStep.SelectedIndex = 1;
            this.cboEndorserCountDirection.SelectedIndex = 0;
            this.cboEndorserFont.SelectedIndex = ModuleScan.EDF_HORIZONTAL;
            this.chkSynchronizationDigitalEndorser.Checked = false;
            this.chkEndorser.Enabled = true;
            this.txtEndorserCounter.Enabled = false;
            this.txtEndorserString.Enabled = false;
            this.txtEndorserOffset.Enabled = false;
            this.cboEndorserDirection.Enabled = false;
            this.cboEndorserCountStep.Enabled = false;
            this.cboEndorserCountDirection.Enabled = false;
            this.cboEndorserFont.Enabled = false;
            this.chkSynchronizationDigitalEndorser.Enabled = false;
            this.chkDigitalEndorser.Checked = false;
            this.txtDigitalEndorserCounter.Text = "0";
            this.txtDigitalEndorserString.Text = "";
            this.txtDigitalEndorserXOffset.Text = "0";
            this.txtDigitalEndorserYOffset.Text = "0";
            this.cboDigitalEndorserCountStep.SelectedIndex = 1;
            this.cboDigitalEndorserCountDirection.SelectedIndex = 0;
            this.chkDigitalEndorser.Enabled = true;
            this.txtDigitalEndorserCounter.Enabled = false;
            this.txtDigitalEndorserString.Enabled = false;
            this.txtDigitalEndorserXOffset.Enabled = false;
            this.txtDigitalEndorserYOffset.Enabled = false;
            this.cboDigitalEndorserCountStep.Enabled = false;
            this.cboDigitalEndorserCountDirection.Enabled = false;
            this.cboJobControl.SelectedIndex = ModuleScan.NONE;
            this.cboBinding.SelectedIndex = 0;
            this.cboMultiFeed.SelectedIndex = 0;
            this.cboFilter.SelectedIndex = ModuleScan.FILTER_GREEN;
            this.txtFilterSaturationSensitivity.Text = "50";
            this.txtSkipWhitePage.Text = "0";
            this.txtSkipBlackPage.Text = "0";
            this.chkAutoBorderDetection.Checked = false;
            this.cboBlankPageNotice.SelectedIndex = 0;
            this.chkHwCompression.Checked = false;
            this.chkAutomaticSenseMedium.Checked = false;
            this.cboBackgroundSmoothing.SelectedIndex = 0;
            this.chkAutoBright.Checked = false;
            this.cboJobControlMode.SelectedIndex = ModuleScan.JCM_SPECIAL_DOCUMENT;
            this.txtBlankPageSkip.Text = "0";
            this.txtDTCSensitivity.Text = "50";
            this.txtBackgroundThreshold.Text = "50";
            this.txtCharacterThickness.Text = "5";
            this.txtSDTCSensitivity.Text = "2";
            this.txtNoiseRejection.Text = "0";
            this.txtADTCThreshold.Text = "83";
            this.cboSharpness.SelectedIndex = ModuleScan.SH_NONE;
            this.txtFadingCompensation.Text = "0";
            this.chksRGB.Checked = false;
            this.cboPunchHoleRemoval.SelectedIndex = ModuleScan.PHR_DO_NOT_REMOVE;
            this.cboPatternRemoval.SelectedIndex = 1;
            this.chkBarcodeDetection.Checked = false;
            this.cboBarcodeDirection.SelectedIndex = ModuleScan.BD_HORIZONTAL_VERTICAL;
            this.txtBarcodeRegionLeft.Text = "0";
            this.txtBarcodeRegionTop.Text = "0";
            this.txtBarcodeRegionWidth.Text = "0";
            this.txtBarcodeRegionLength.Text = "0";
            this.chkEAN8.Checked = true;
            this.chkEAN13.Checked = true;
            this.chkCode3of9.Checked = true;
            this.chkCode128.Checked = true;
            this.chkITF.Checked = true;
            this.chkUPCA.Checked = true;
            this.chkCodabar.Checked = true;
            this.chkPDF417.Checked = true;
            this.chkQRCode.Checked = true;
            this.chkDataMatrix.Checked = false;
            this.txtBarcodeMaxSearchPriorities.Text = "1";
            this.cboBarcodeDirection.Enabled = false;
            this.txtBarcodeRegionLeft.Enabled = false;
            this.txtBarcodeRegionTop.Enabled = false;
            this.txtBarcodeRegionWidth.Enabled = false;
            this.txtBarcodeRegionLength.Enabled = false;
            this.chkEAN8.Enabled = false;
            this.chkEAN13.Enabled = false;
            this.chkCode3of9.Enabled = false;
            this.chkCode128.Enabled = false;
            this.chkITF.Enabled = false;
            this.chkUPCA.Enabled = false;
            this.chkCodabar.Enabled = false;
            this.chkPDF417.Enabled = false;
            this.chkQRCode.Enabled = false;
            this.chkDataMatrix.Enabled = false;
            this.txtBarcodeMaxSearchPriorities.Enabled = false;
            this.chkPatchCodeDetection.Checked = false;
            this.cboPatchCodeDirection.SelectedIndex = ModuleScan.PD_VERTICAL;
            this.chkPatch1.Checked = true;
            this.chkPatch2.Checked = true;
            this.chkPatch3.Checked = true;
            this.chkPatch4.Checked = true;
            this.chkPatch6.Checked = true;
            this.chkPatchT.Checked = true;
            this.cboEdgeFiller.SelectedIndex = ModuleScan.EF_OFF;
            this.txtEdgeFillerTop.Text = "0";
            this.txtEdgeFillerBottom.Text = "0";
            this.txtEdgeFillerLeft.Text = "0";
            this.txtEdgeFillerRight.Text = "0";
            this.chkEdgeRepair.Checked = false;

            this.MenuItemShowSourceUI.Checked = false;
            this.MenuItemCloseSourceUI.Checked = false;
            this.MenuItemSourceCurrentScan.Checked = false;
            this.MenuItemTWAINTemplate.Enabled = this.MenuItemSourceCurrentScan.Checked;
            this.MenuItemSilentMode.Checked = false;
            ModuleScan.intReport = ModuleScan.NONE;
            this.MenuItemReportOFF.Checked = true;
            this.MenuItemReportDisplay.Checked = false;
            this.MenuItemReportFile.Checked = false;
            this.MenuItemReportBoth.Checked = false;
            this.MenuItemIndicator.Checked = true;
            if (Int32.Parse(this.txtShadow.Text) >= 230)
            {
                this.txtShadow.Text = "10";
                this.txtHighlight.Text = "230";
            }
            else
            {
                this.txtHighlight.Text = "230";
                this.txtShadow.Text = "10";
            }
            this.txtHighlight.Enabled = false;
            this.txtShadow.Enabled = false;
            this.cboOverScan.SelectedIndex = ModuleScan.OVERSCAN_OFF;
            this.cboUnit.SelectedIndex = ModuleScan.UNIT_INCHES;
        }

        //----------------------------------------------------------------------------
        //   Function    : Selection of a "FileType" list box was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void cboFileType_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            //The following properties are adjusted according to specified FileType.
            //- PixelType
            //- CompressionType
            //- JpegQuality
            if((this.cboFileType.SelectedIndex == ModuleScan.FILE_MULTIIMAGE_OUTPUT) ||
                (this.cboFileType.SelectedIndex == ModuleScan.FILE_AUTO_COLOR_DETECTION))
            {
                this.cboCompType.SelectedIndex = ModuleScan.COMP_MMR;
                this.cboCompType.Enabled = false;
                this.cboJpegQuality.Enabled = true;
                this.cboPixelType.SelectedIndex = ModuleScan.PIXEL_RGB;
                this.cboPixelType.Enabled = false;
            }
            else
            {
                this.cboCompType.Enabled = true;
                this.cboPixelType.Enabled = true;
            }
            if(this.cboFileType.SelectedIndex == ModuleScan.FILE_BMP)
            {
                this.cboCompType.SelectedIndex = ModuleScan.NO_COMP;
                this.cboCompType.Enabled = false;
                this.cboJpegQuality.Enabled = false;
            }
            else if((this.cboFileType.SelectedIndex == ModuleScan.FILE_TIF) || 
                (this.cboFileType.SelectedIndex == ModuleScan.FILE_MULTIF))
            {
                if(this.cboCompType.SelectedIndex == ModuleScan.COMP_JPEG ||
                    this.cboCompType.SelectedIndex == ModuleScan.COMP_OLDJPEG )
                {
                    if(this.cboPixelType.SelectedIndex == ModuleScan.PIXEL_BLACK_WHITE)
                    {
                        this.cboPixelType.SelectedIndex = ModuleScan.PIXEL_GRAYSCALE;
                    }
                    this.cboJpegQuality.Enabled = true;
                }
                else 
                {
                    cboJpegQuality.Enabled = false;
                }
                if((this.cboCompType.SelectedIndex != ModuleScan.NO_COMP) && 
                    (this.cboCompType.SelectedIndex != ModuleScan.COMP_JPEG) &&
                    (this.cboCompType.SelectedIndex != ModuleScan.COMP_OLDJPEG))
                {
                    this.cboPixelType.SelectedIndex = ModuleScan.PIXEL_BLACK_WHITE;
                }

                if(this.cboPixelType.SelectedIndex == ModuleScan.PIXEL_BLACK_WHITE)
                {
                    this.cboCompType.Enabled = true;
                }
                else
                {
                    this.cboCompType.Enabled = false;
                }
            }
            else if(this.cboFileType.SelectedIndex == ModuleScan.FILE_JPEG)
            {
                this.cboCompType.SelectedIndex = ModuleScan.COMP_JPEG;
                this.cboCompType.Enabled = false;
                this.cboJpegQuality.Enabled = true;
                //The following properties are adjusted according to specified PixelType.
                //- Mirroring
                //- Threshold
                //- Halftone
                //- HalftoneFile
                //- AutoSeparation
                //- SEE
                //- ThresholdCurve
                //- NoiseRemoval
                //- PreFiltering
                //- Smoothing
                if(this.cboPixelType.SelectedIndex == ModuleScan.PIXEL_BLACK_WHITE)
                {
                    this.cboPixelType.SelectedIndex = ModuleScan.PIXEL_RGB;
                    this.chkMirroring.Enabled = false;
                    this.txtThreshold.Enabled = false;
                    this.cboHalftone.Enabled = false;
                    this.txtHalftoneFile.Enabled = false;
                    this.cboAutoSeparation.Enabled = false;
                    this.cboSEE.Enabled= false;
                    this.chkPreFiltering.Enabled = false;
                    this.chkSmoothing.Enabled = false;
                    this.cboThresholdCurve.Enabled = false;
                    this.cboNoiseRemoval.Enabled = false;
                }
            }
            else if((this.cboFileType.SelectedIndex == ModuleScan.FILE_PDF) || 
                (this.cboFileType.SelectedIndex == ModuleScan.FILE_MULPDF))
            {
                if(this.cboPixelType.SelectedIndex == ModuleScan.PIXEL_BLACK_WHITE)
                {
                    if(this.cboCompType.SelectedIndex == ModuleScan.COMP_JPEG)
                    {
                        this.cboCompType.SelectedIndex = ModuleScan.COMP_MMR;
                    }
                    this.cboJpegQuality.Enabled = false;
                }
                else
                {
                    this.cboCompType.SelectedIndex = ModuleScan.COMP_JPEG;
                    this.cboCompType.Enabled = false;
                    this.cboJpegQuality.Enabled = true;
                }
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "FileCounter" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtFileCounter_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 0
            if(this.txtFileCounter.Text.Length == 0)
                this.txtFileCounter.Text = "0";
            
            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtFileCounter.Text) == true)
            {
                try
                
                {
                    count = System.Int32.Parse(this.txtFileCounter.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
          
            if(count < -1)
            {
                this.txtFileCounter.Text = "0";
            }
            else if(count > 65535)
            {
                this.txtFileCounter.Text = "65535";
            }
            else
            {
                this.txtFileCounter.Text = count.ToString();
            }    
        }

        //----------------------------------------------------------------------------
        //  Function    : Selection of a "PixelType" list box was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void cboPixelType_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            //Adjustment with the following property
            //- FileType
            //- CompressionType
            //- JpegQuality
            //- Mirroring
            //- Threshold
            //- Halftone
            //- HalftoneFile
            //- AutoSeparation
            //- SEE
            //- PixelType
            //- ThresholdCurve
            //- NoiseRemoval
            //- PreFiltering
            //- Smoothing
            //- Outline
            //- Highlight
            //- Shadow
            if(this.cboPixelType.SelectedIndex == ModuleScan.PIXEL_BLACK_WHITE)
            {
                if(this.cboFileType.SelectedIndex == ModuleScan.FILE_JPEG)
                {
                    this.cboFileType.SelectedIndex = ModuleScan.FILE_TIF;
                }
                if(this.cboCompType.SelectedIndex == ModuleScan.COMP_JPEG ||
                    this.cboCompType.SelectedIndex == ModuleScan.COMP_OLDJPEG) 
                {
                    this.cboCompType.SelectedIndex = ModuleScan.COMP_MMR;
                }
                if(this.cboFileType.SelectedIndex == ModuleScan.FILE_BMP)
                {
                    this.cboCompType.SelectedIndex = ModuleScan.NO_COMP;
                    this.cboCompType.Enabled = false;
                }
                else
                {
                    this.cboCompType.Enabled = true;
                }
                this.cboJpegQuality.Enabled = false;
                this.chkMirroring.Enabled = true;
                if(this.cboHalftone.SelectedIndex == ModuleScan.NONE)
                {
                    this.txtThreshold.Enabled = true;
                }
                else
                {
                    this.txtThreshold.Enabled = false;
                }
                if(this.cboHalftone.SelectedIndex == ModuleScan.DITHER_PATTERN_FILE)
                {
                    this.txtHalftoneFile.Enabled = true;
                }
                this.cboHalftone.Enabled = true;
                this.cboAutoSeparation.Enabled = true;
                this.cboSEE.Enabled = true;
                if((this.cboHalftone.SelectedIndex == ModuleScan.NONE) && 
                    (this.txtThreshold.Text.Length > 0) && 
                    (System.Int32.Parse(this.txtThreshold.Text) == 0))
                {
                    this.chkPreFiltering.Enabled = true;
                    this.chkSmoothing.Enabled = true;
                    this.cboThresholdCurve.Enabled = true;
                    this.cboNoiseRemoval.Enabled = true;
                }
                else
                {
                    this.chkPreFiltering.Enabled = false;
                    this.chkSmoothing.Enabled = false;
                    this.cboThresholdCurve.Enabled = false;
                    this.cboNoiseRemoval.Enabled = false;
                }
                this.cboOutline.Enabled = true;
                int iCount = this.cboOutline.Items.Count - 1;
                for(int i = 4; i <= iCount; i++)
                {
                    this.cboOutline.Items.RemoveAt(4);
                }
                this.cboOutline.Items.Add("Outline Smooth");
                this.cboOutline.Items.Add("Edge Extract");
                this.cboOutline.SelectedIndex = 0;

                if((this.cboFileType.SelectedIndex == ModuleScan.FILE_JPEG) || 
                    (this.cboFileType.SelectedIndex == ModuleScan.FILE_PDF) || 
                    (this.cboFileType.SelectedIndex == ModuleScan.FILE_MULPDF))
                {
                    this.cboCompType.Enabled = true;
                }
                this.txtHighlight.Enabled = false;
                this.txtShadow.Enabled = false;
            }
            else
            {
                if(this.cboFileType.SelectedIndex == ModuleScan.FILE_JPEG)
                {
                    this.cboCompType.Enabled = false;
                    this.cboCompType.SelectedIndex = ModuleScan.COMP_JPEG;
                    this.cboJpegQuality.Enabled = true;
                }
                else if((this.cboFileType.SelectedIndex == ModuleScan.FILE_PDF) || 
                    (this.cboFileType.SelectedIndex == ModuleScan.FILE_MULPDF))
                {
                    this.cboCompType.Enabled = false;
                    this.cboCompType.SelectedIndex = ModuleScan.COMP_JPEG;
                    this.cboJpegQuality.Enabled = true;
                }
                else if((this.cboFileType.SelectedIndex == ModuleScan.FILE_MULTIIMAGE_OUTPUT) ||
                    (this.cboFileType.SelectedIndex == ModuleScan.FILE_AUTO_COLOR_DETECTION))
                {
                    this.cboCompType.Enabled = false;
                    this.cboCompType.SelectedIndex = ModuleScan.COMP_MMR;
                    this.cboJpegQuality.Enabled = true;
                }
                else if(((this.cboFileType.SelectedIndex == ModuleScan.FILE_TIF) ||    (this.cboFileType.SelectedIndex == ModuleScan.FILE_MULTIF)) &&
                    ((this.cboCompType.SelectedIndex == ModuleScan.COMP_JPEG) || (this.cboCompType.SelectedIndex == ModuleScan.COMP_OLDJPEG)))
                {
                    this.cboJpegQuality.Enabled = true;
                    this.cboCompType.Enabled = false;
                }
                else
                {
                    this.cboCompType.Enabled = false;
                    this.cboCompType.SelectedIndex = ModuleScan.NO_COMP;
                    this.cboJpegQuality.Enabled = false;
                }
                this.chkMirroring.Enabled = false;
                this.txtThreshold.Enabled = false;
                this.cboHalftone.Enabled = false;
                this.txtHalftoneFile.Enabled = false;
                this.cboAutoSeparation.Enabled = false;
                this.cboSEE.Enabled = false;
                this.chkPreFiltering.Enabled = false;
                this.chkSmoothing.Enabled = false;
                this.cboThresholdCurve.Enabled = false;
                this.cboNoiseRemoval.Enabled = false;
                if(this.cboPixelType.SelectedIndex == ModuleScan.PIXEL_GRAYSCALE)
                {
                    this.cboOutline.Enabled = false;
                    this.cboOutline.SelectedIndex = 0;
                }
                else
                {
                    int iCount = this.cboOutline.Items.Count - 1;
                    for(int i = 4; i <= iCount; i++)
                        this.cboOutline.Items.RemoveAt(4);
                        this.cboOutline.Items.Add("De-Screen Level1");
                        this.cboOutline.Items.Add("De-Screen Level2");
                        this.cboOutline.Items.Add("De-Screen Level3");
                        this.cboOutline.Items.Add("De-Screen Level4");
                        this.cboOutline.SelectedIndex = 0;
                        this.cboOutline.Enabled = true;
                        this.cboOutline.SelectedIndex = 0;
                }
                this.txtHighlight.Enabled = true;
                this.txtShadow.Enabled = true;
            }

            if((this.cboPaperSupply.SelectedIndex == ModuleScan.ADF_A3CS) || 
                (this.cboPaperSupply.SelectedIndex == ModuleScan.ADF_DLCS) || 
                (this.cboPaperSupply.SelectedIndex == ModuleScan.ADF_B4CS) || 
                (this.cboPaperSupply.SelectedIndex == ModuleScan.ADF_CS))
            {
                this.cboOutline.Enabled = false;
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : Selection of a "Resolution" list box was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void cboResolution_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            int index = this.cboResolution.SelectedIndex;
            int iRes = ResolutionValue(index);
            this.txtCustomResolution.Text = iRes.ToString();            

            UpdateUnit();
            ModuleScan.PreviousReso = iRes;
            //When Resolution is "custom-made", CustomResolution is confirmed and an initial value is set up.
            if(index == this.cboResolution.Items.Count - 1)
            {
                this.txtCustomResolution.Enabled = true;
                return;
            }
            else
            {
                this.txtCustomResolution.Enabled = false;
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "CustomResolution" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtCustomResolution_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 300
            if(this.txtCustomResolution.Text.Length == 0)
            {
                this.txtCustomResolution.Text = "300";
                return;
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtCustomResolution.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtCustomResolution.Text);
                }
                catch (System.Exception)
                {
                    count = 50;
                }
            }
            else
            {
                count = 50;
            }
            
            if(count > 1600)
            {
                this.txtCustomResolution.Text = "1600";
            }
            else if(count < 50)
            {
                this.txtCustomResolution.Text = "50";
            }
            else
            {
                this.txtCustomResolution.Text = count.ToString();
                UpdateUnit();
                ModuleScan.PreviousReso = count;
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "ScanCount" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtScanCount_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 1
            if(this.txtScanCount.Text.Length == 0)
            {
                this.txtScanCount.Text ="1";
                return;
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtScanCount.Text) == true)
            {

                                                                            
                try
                {
                    count = System.Int32.Parse(this.txtScanCount.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
            
            if(count > 32767)
            {
                this.txtScanCount.Text = "32767";
            }
            else if(count < 1)
            {
                this.txtScanCount.Text = "-1";
            }
            else
            {
                this.txtScanCount.Text = count.ToString();
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : Selection of a "PaperSupply" list box was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void cboPaperSupply_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            CarrierSheetSet();
            UpdateUnit();
        }

        //----------------------------------------------------------------------------
        //  Function    : Selection of a "PaperSize" list box was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void cboPaperSize_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            string strWork;

            if((this.cboPaperSupply.SelectedIndex == ModuleScan.ADF_CS) && 
                ((this.cboPaperSize.SelectedIndex == ModuleScan.PSIZE_A3) || 
                (this.cboPaperSize.SelectedIndex == ModuleScan.PSIZE_B4) || 
                (this.cboPaperSize.SelectedIndex == ModuleScan.PSIZE_DOUBLELETTER)))
            {
                this.cboPaperSize.SelectedIndex = ModuleScan.PSIZE_A4;
            }
            
            //CustomWidth and CustomLength is enabled when PaperSize is a "custom".
            if(this.cboPaperSize.SelectedIndex == ModuleScan.PSIZE_INDEX_CUSTOM)
            {
                this.txtCustomPaperWidth.Enabled = true;
                this.txtCustomPaperLength.Enabled = true;
                return;
            }
            else
            {
                this.txtCustomPaperWidth.Enabled = false;
                this.txtCustomPaperLength.Enabled = false;
            }
            //The initial value of CustomWidth and CustomLength is adjusted
            //according to specified PaperSize.
            UpdateUnit();
            if(this.cboOrientation.SelectedIndex == ModuleScan.LANDSCAPE)
            {
                strWork = txtCustomPaperWidth.Text;
                this.txtCustomPaperWidth.Text = this.txtCustomPaperLength.Text;
                this.txtCustomPaperLength.Text = strWork;
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : Selection of a "Orientation" list box was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void cboOrientation_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            string strWork;
            int Index;

            //According to the value of Orientation, the CustomWidth and the CustomLength are replaced.
            Index = this.cboOrientation.SelectedIndex;
            if((Index == ModuleScan.LANDSCAPE && ModuleScan.intOrientation == ModuleScan.PORTRAIT) ||
                (Index == ModuleScan.PORTRAIT && ModuleScan.intOrientation == ModuleScan.LANDSCAPE))
            {
                strWork = this.txtCustomPaperWidth.Text;
                txtCustomPaperWidth.Text = txtCustomPaperLength.Text;
                txtCustomPaperLength.Text = strWork;
            }
            ModuleScan.intOrientation = Index;
            
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "CustomPaperWidth" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtCustomPaperWidth_TextChanged(object sender, System.EventArgs e)
        {
            double count;
            //An initial value is set to 0
            if(this.txtCustomPaperWidth.Text.Length == 0)
            {
                this.txtCustomPaperWidth.Text = "0";
                return;
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtCustomPaperWidth.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtCustomPaperWidth.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
            
            
            if(count < 0)
            {
                this.txtCustomPaperWidth.Text = "0";
            }
            else
            {
                this.txtCustomPaperWidth.Text = changeDigitByUnit(count);
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "CustomPaperLength" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtCustomPaperLength_TextChanged(object sender, System.EventArgs e)
        {
            double count;

            //An initial value is set to 0
            if(this.txtCustomPaperLength.Text.Length == 0)
            {
                this.txtCustomPaperLength.Text = "0";
                return;
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtCustomPaperLength.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtCustomPaperLength.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
            
            if(count < 0)
            {
                this.txtCustomPaperLength.Text = "0";
            }
            else
            {
                this.txtCustomPaperLength.Text = changeDigitByUnit(count);
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "RegionLeft" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtRegionLeft_TextChanged(object sender, System.EventArgs e)
        {
            double count;

            //An initial value is set to 0
            if(this.txtRegionLeft.Text.Length == 0)
            {
                this.txtRegionLeft.Text = "0";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtRegionLeft.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtRegionLeft.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
            
            if(count < 0)
            {
                this.txtRegionLeft.Text = "0";
            }
            else
            {
                this.txtRegionLeft.Text = changeDigitByUnit(count);
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "RegionTop" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtRegionTop_TextChanged(object sender, System.EventArgs e)
        {
            double count;

            //An initial value is set to 0
            if(this.txtRegionTop.Text.Length == 0)
            {
                this.txtRegionTop.Text = "0";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtRegionTop.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtRegionTop.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
            
            if(count < 0)
            {
                this.txtRegionTop.Text = "0";
            }
            else
            {
                this.txtRegionTop.Text = changeDigitByUnit(count);
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "RegionWidth" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtRegionWidth_TextChanged(object sender, System.EventArgs e)
        {
            double count;

            //An initial value is set to 0
            if(this.txtRegionWidth.Text.Length == 0)
            {
                this.txtRegionWidth.Text = "0";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtRegionWidth.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtRegionWidth.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
            
            if(count < 0)
            {
                this.txtRegionWidth.Text = "0";
            }
            else
            {
                this.txtRegionWidth.Text = changeDigitByUnit(count);
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "RegionLength" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtRegionLength_TextChanged(object sender, System.EventArgs e)
        {
            double count;

            //An initial value is set to 0
            if(this.txtRegionLength.Text.Length == 0)
            {
                this.txtRegionLength.Text = "0";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtRegionLength.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtRegionLength.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
            
            if(count < 0)
            {
                this.txtRegionLength.Text = "0";
            }
            else
            {
                this.txtRegionLength.Text = changeDigitByUnit(count);
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "Brightness" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtBrightness_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 1
            if(this.txtBrightness.Text.Length == 0)
            {
                this.txtBrightness.Text = "1";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtBrightness.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtBrightness.Text);
                }
                catch (System.Exception)
                {
                    count = 1;
                }
            }
            else
            {
                count = 1;
            }
            
            if(count > 255)
            {
                this.txtBrightness.Text = "255";
            }
            else if(count < 1)
            {
                this.txtBrightness.Text = "1";
            }
            else
            {
                this.txtBrightness.Text = count.ToString();
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "Contrast" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtContrast_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 1
            if(this.txtContrast.Text.Length == 0)
            {
                this.txtContrast.Text = "1";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtContrast.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtContrast.Text);
                }
                catch (System.Exception)
                {
                    count = 1;
                }
            }
            else
            {
                count = 1;
            }
            
            if(count > 255)
            {
                this.txtContrast.Text = "255";
            }
            else if(count < 1)
            {
                this.txtContrast.Text = "1";
            }
            else
            {
                this.txtContrast.Text = count.ToString();
            }

        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "Threshold" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtThreshold_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 0
            if(this.txtThreshold.Text.Length == 0)
            {
                this.txtThreshold.Text = "0";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtThreshold.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtThreshold.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
            
            if(count > 255)
            {
                this.txtThreshold.Text = "255";
            }
            else if(count < -2)
            {
                this.txtThreshold.Text = "0";
            }
            else 
            {
                this.txtThreshold.Text = count.ToString();
            }

            //Adjustment with the following property
            //- Halftone
            //- PixelType
            //- ThresholdCurve
            //- NoiseRemoval
            //- PreFiltering
            //- Smoothing
            if((System.Int32.Parse(this.txtThreshold.Text) == 0) && 
                (this.cboPixelType.SelectedIndex == ModuleScan.PIXEL_BLACK_WHITE) && 
                (this.cboHalftone.SelectedIndex == ModuleScan.NONE))
            {
                this.chkPreFiltering.Enabled = true;
                this.chkSmoothing.Enabled = true;
                this.cboThresholdCurve.Enabled = true;
                this.cboNoiseRemoval.Enabled = true;
            }
            else
            {
                this.chkPreFiltering.Enabled = false;
                this.chkSmoothing.Enabled = false;
                this.cboThresholdCurve.Enabled = false;
                this.cboNoiseRemoval.Enabled = false;                
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : Selection of a "Halftone" list box was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void cboHalftone_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            //HalftoneFile is enabled when Halftone is a "dither pattern file."
            if(this.cboHalftone.SelectedIndex == ModuleScan.DITHER_PATTERN_FILE)
            {
                this.txtHalftoneFile.Enabled = true;
            }
            else
            {
                this.txtHalftoneFile.Enabled = false;
            }
            //Threshold is enabled when Halftone is a "nothing".
            //And the following properties are adjusted according to specified Threshold.
            //- ThresholdCurve
            //- NoiseRemoval
            //- PreFiltering
            //- Smoothing
            if(this.cboHalftone.SelectedIndex == ModuleScan.NONE)
            {
                this.txtThreshold.Enabled = true;
                if((this.cboPixelType.SelectedIndex == ModuleScan.PIXEL_BLACK_WHITE) && 
                    (this.txtThreshold.Text.Length > 0) && 
                    (System.Int32.Parse(this.txtThreshold.Text) == 0))
                {
                    this.chkPreFiltering.Enabled = true;
                    this.chkSmoothing.Enabled = true;
                    this.cboThresholdCurve.Enabled = true;
                    this.cboNoiseRemoval.Enabled = true;
                }
                else
                {
                    this.chkPreFiltering.Enabled = false;
                    this.chkSmoothing.Enabled = false;
                    this.cboThresholdCurve.Enabled = false;
                    this.cboNoiseRemoval.Enabled = false;
                }
            }
            else
            {
                this.txtThreshold.Enabled = false;
                this.chkPreFiltering.Enabled = false;
                this.chkSmoothing.Enabled = false;
                this.cboThresholdCurve.Enabled = false;
                this.cboNoiseRemoval.Enabled = false;
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : Selection of a "Gamma" list box was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void cboGamma_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            //Gamma pattern file or other
            if(this.cboGamma.SelectedIndex == ModuleScan.GAMMA_PATTERN_FILE)
            {
                this.txtGammaFile.Enabled = true;
            }
            else
            {
                this.txtGammaFile.Enabled = false;
            }

            //Custom gamma or other
            if(this.cboGamma.SelectedIndex == ModuleScan.GAMMA_CUSTOM)
            {
                this.txtCustomGamma.Enabled = true;
            }
            else
            {
                this.txtCustomGamma.Enabled = false;
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "CustomGamma" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtCustomGamma_TextChanged(object sender, System.EventArgs e)
        {
            double count;

            //An initial value is set to 0
            if(this.txtCustomGamma.Text.Length == 0)
            {
                this.txtCustomGamma.Text = "0";
            }

            //An initial value is set to 0
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtCustomGamma.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtCustomGamma.Text);
                }
                catch (System.Exception)
                {
                    count = 0.1;
                }
            }
            else
            {
                count = 0.1;
            }
            
            if(count > 10)
            {
                this.txtCustomGamma.Text = "10";
            }
            else if(count < 0.1)
            {
                this.txtCustomGamma.Text = "0.1";
            }
            else
            {
                this.txtCustomGamma.Text = count.ToString();
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "Endorser" check box was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void chkEndorser_CheckedChanged(object sender, System.EventArgs e)
        {
            //1) When an endorser is used
            //     Enable all parameter items.
            //2) When an endorser is not used
            //     Disable all paramter items.
            if(this.chkEndorser.CheckState == CheckState.Checked)
            {
                this.txtEndorserCounter.Enabled = true;
                this.txtEndorserString.Enabled = true;
                this.txtEndorserOffset.Enabled = true;
                this.cboEndorserDirection.Enabled = true;
                this.cboEndorserCountStep.Enabled = true;
                this.cboEndorserCountDirection.Enabled = true;
                this.cboEndorserFont.Enabled = true;
                this.chkSynchronizationDigitalEndorser.Enabled = true;
            }
            else
            {
                this.txtEndorserCounter.Enabled = false;
                this.txtEndorserString.Enabled = false;
                this.txtEndorserOffset.Enabled = false;
                this.cboEndorserDirection.Enabled = false;
                this.cboEndorserCountStep.Enabled = false;
                this.cboEndorserCountDirection.Enabled = false;
                this.cboEndorserFont.Enabled = false;
                this.chkSynchronizationDigitalEndorser.Enabled = false;
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "EndorserCounter" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtEndorserCounter_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 0
            if(this.txtEndorserCounter.Text.Length == 0)
            {
                this.txtEndorserCounter.Text = "0";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtEndorserCounter.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtEndorserCounter.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
            
            if(count > 99999999)
            {
                this.txtEndorserCounter.Text = "99999999";
            }
            else if(count < -1)
            {
                this.txtEndorserCounter.Text = "0";
            }
            else
            {
                this.txtEndorserCounter.Text = count.ToString();
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "EndorserOffset" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtEndorserOffset_TextChanged(object sender, System.EventArgs e)
        {
            double count;

            //An initial value is set to 0
            if(this.txtEndorserOffset.Text.Length == 0)
            {
                this.txtEndorserOffset.Text = "0";
                return;
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtEndorserOffset.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtEndorserOffset.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
            
            if(count < 0)
            {
                this.txtEndorserOffset.Text = "0";
            }
            else
            {
                this.txtEndorserOffset.Text = changeDigitByUnit(count);
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "SkipWhitePage" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtSkipWhitePage_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 0
            if(this.txtSkipWhitePage.Text.Length == 0)
            {
                this.txtSkipWhitePage.Text = "0";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtSkipWhitePage.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtSkipWhitePage.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
        
            if(count > 15)
            {
                this.txtSkipWhitePage.Text = "15";
            }
            else if(count < 0)
            {
                this.txtSkipWhitePage.Text = "0";
            }
            else
            {
                this.txtSkipWhitePage.Text = count.ToString();
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "SkipBlackPage" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtSkipBlackPage_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 0
            if(this.txtSkipBlackPage.Text.Length == 0)
            {
                this.txtSkipBlackPage.Text = "0";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtSkipBlackPage.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtSkipBlackPage.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
            
            if(count > 15)
            {
                this.txtSkipBlackPage.Text = "15";
            }
            else if(count < 0)
            {
                this.txtSkipBlackPage.Text = "0";
            }
            else
            {
                this.txtSkipBlackPage.Text = count.ToString();
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : It notifies having detected the special paper/Patch Code paper by the message.
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void axFiScn1_DetectJobSeparator(object sender, System.EventArgs e)
        {
            MessageBox.Show("The special paper/Patch Code paper was detected.", "fiScanTest");
        }

        //----------------------------------------------------------------------------
        //  Function    : CarrierSheet Setting
        //  Argument    : Nothing
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void CarrierSheetSet()
        {
            if((this.cboPaperSupply.SelectedIndex == ModuleScan.ADF_A3CS) || 
                (this.cboPaperSupply.SelectedIndex == ModuleScan.ADF_DLCS) || 
                (this.cboPaperSupply.SelectedIndex == ModuleScan.ADF_B4CS) || 
                (this.cboPaperSupply.SelectedIndex == ModuleScan.ADF_CS))
            {
                if((this.cboFileType.SelectedIndex == ModuleScan.FILE_JPEG) || 
                    (this.cboFileType.SelectedIndex == ModuleScan.FILE_PDF) || 
                    (this.cboFileType.SelectedIndex == ModuleScan.FILE_MULPDF))
                {
                    this.cboCompType.SelectedIndex = ModuleScan.COMP_JPEG;
                }
                else
                {
                    this.cboCompType.SelectedIndex = ModuleScan.NO_COMP;
                    this.cboJpegQuality.Enabled = false;
                }
                this.cboScanMode.SelectedIndex = ModuleScan.SM_NORMAL;
                this.cboScanMode.Enabled = false;
                this.chkScanContinue.Checked = false;
                this.chkScanContinue.Enabled = false;
                this.chkAutoBorderDetection.Checked = false;
                this.chkAutoBorderDetection.Enabled = false;
                this.cboAutoSeparation.Enabled = false;
                this.cboBackgroundColor.SelectedIndex = 0;
                this.cboBackgroundColor.Enabled = false;
                this.cboBinding.SelectedIndex = 0;
                this.cboBinding.Enabled = false;
                this.txtBrightness.Text = "128";
                this.txtBrightness.Enabled = false;
                this.cboCompType.Enabled = false;
                this.txtContrast.Text = "128";
                this.txtContrast.Enabled = false;
                this.chkEndorser.Checked = false;
                this.chkEndorser.Enabled = false;
                this.txtEndorserCounter.Enabled = false;
                this.txtEndorserString.Enabled = false;
                this.txtEndorserOffset.Enabled = false;
                this.cboEndorserDirection.Enabled = false;
                this.cboEndorserCountStep.Enabled = false;
                this.cboEndorserCountDirection.Enabled = false;
                this.cboEndorserFont.Enabled = false;
                this.chkSynchronizationDigitalEndorser.Enabled = false;
                this.chkDigitalEndorser.Checked = false;
                this.chkDigitalEndorser.Enabled = false;
                this.txtDigitalEndorserCounter.Enabled = false;
                this.txtDigitalEndorserString.Enabled = false;
                this.txtDigitalEndorserXOffset.Enabled = false;
                this.txtDigitalEndorserYOffset.Enabled = false;
                this.cboDigitalEndorserCountStep.Enabled = false;
                this.cboDigitalEndorserCountDirection.Enabled = false;
                this.cboGamma.Enabled = false;
                this.txtGammaFile.Enabled = false;
                this.txtCustomGamma.Enabled = false;
                this.cboHalftone.Enabled = false;
                this.txtHalftoneFile.Enabled = false;
                this.chkLongPage.Checked = false;
                this.chkLongPage.Enabled = false;
                this.chkMirroring.Enabled = false;
                this.cboMultiFeed.SelectedIndex = 0;
                this.cboMultiFeed.Enabled = false;
                this.cboOrientation.SelectedIndex = ModuleScan.PORTRAIT;
                this.cboOrientation.Enabled = false;
                this.cboOutline.SelectedIndex = ModuleScan.NONE;
                this.cboOutline.Enabled = false;
                this.chkAutomaticSenseMedium.Enabled = false;
                this.cboBackgroundSmoothing.Enabled = false;
                this.chkAutoBright.Enabled = false;
                this.txtBlankPageSkip.Enabled = false;
                this.cboJobControlMode.Enabled = false;
                this.cboBlankPageNotice.Enabled = false;
                this.chkHwCompression.Enabled = false;
                this.txtDTCSensitivity.Enabled = false;
                this.txtBackgroundThreshold.Enabled = false;
                this.txtCharacterThickness.Enabled = false;
                this.txtSDTCSensitivity.Enabled = false;
                this.txtNoiseRejection.Enabled = false;
                this.txtADTCThreshold.Enabled = false;
                this.txtFadingCompensation.Enabled = false;
                this.cboSharpness.Enabled = false;
                this.cboPunchHoleRemoval.Enabled = false;
                this.chksRGB.Enabled = false;
                this.cboPatternRemoval.Enabled = false;
                this.chkVerticalLineReduction.Enabled = false;
                this.chkAIQCNotice.Enabled = false;
                this.txtBackgroundSmoothness.Enabled = false;
                this.cboCropPriority.Enabled = false;
                this.cboDeskew.Enabled = false;
                this.txtCropMarginSize.Enabled = false;
                this.txtMultiFeedModeChangeSize.Enabled = false;

                this.chkBarcodeDetection.Checked = false;
                this.chkBarcodeDetection.Enabled = false;
                this.cboBarcodeDirection.SelectedIndex = ModuleScan.BD_HORIZONTAL_VERTICAL;
                this.txtBarcodeRegionLeft.Text = "0";
                this.txtBarcodeRegionTop.Text = "0";
                this.txtBarcodeRegionWidth.Text = "0";
                this.txtBarcodeRegionLength.Text = "0";
                this.chkEAN8.Checked = true;
                this.chkEAN13.Checked = true;
                this.chkCode3of9.Checked = true;
                this.chkCode128.Checked = true;
                this.chkITF.Checked = true;
                this.chkUPCA.Checked = true;
                this.chkCodabar.Checked = true;
                this.chkPDF417.Checked = true;
                this.chkQRCode.Checked = true;
                this.chkDataMatrix.Checked = false;
                this.txtBarcodeMaxSearchPriorities.Text = "1";
                this.cboBarcodeDirection.Enabled = false;
                this.txtBarcodeRegionLeft.Enabled = false;
                this.txtBarcodeRegionTop.Enabled = false;
                this.txtBarcodeRegionWidth.Enabled = false;
                this.txtBarcodeRegionLength.Enabled = false;
                this.chkEAN8.Enabled = false;
                this.chkEAN13.Enabled = false;
                this.chkCode3of9.Enabled = false;
                this.chkCode128.Enabled = false;
                this.chkITF.Enabled = false;
                this.chkUPCA.Enabled = false;
                this.chkCodabar.Enabled = false;
                this.chkPDF417.Enabled = false;
                this.chkQRCode.Enabled = false;
                this.chkDataMatrix.Enabled = false;
                this.txtBarcodeMaxSearchPriorities.Enabled = false;

                this.chkPatchCodeDetection.Checked = false;
                this.chkPatchCodeDetection.Enabled = false;
                this.cboPatchCodeDirection.SelectedIndex = ModuleScan.PD_VERTICAL;
                this.cboPatchCodeDirection.Enabled = false;
                this.chkPatch1.Checked = true;
                this.chkPatch1.Enabled = false;
                this.chkPatch2.Checked = true;
                this.chkPatch2.Enabled = false;
                this.chkPatch3.Checked = true;
                this.chkPatch3.Enabled = false;
                this.chkPatch4.Checked = true;
                this.chkPatch4.Enabled = false;
                this.chkPatch6.Checked = true;
                this.chkPatch6.Enabled = false;
                this.chkPatchT.Checked = true;
                this.chkPatchT.Enabled = false;

                this.cboEdgeFiller.SelectedIndex = ModuleScan.EF_OFF;
                this.cboEdgeFiller.Enabled = false;
                this.txtEdgeFillerTop.Text = "0";
                this.txtEdgeFillerBottom.Text = "0";
                this.txtEdgeFillerLeft.Text = "0";
                this.txtEdgeFillerRight.Text = "0";
                this.chkEdgeRepair.Checked = false;
                this.chkEdgeRepair.Enabled = false;

                if(this.cboPaperSupply.SelectedIndex == ModuleScan.ADF_CS)
                {
                    if(this.cboPaperSize.SelectedIndex == ModuleScan.PSIZE_INDEX_CUSTOM)
                    {
                        this.txtCustomPaperWidth.Enabled = true;
                        this.txtCustomPaperLength.Enabled = true;
                    }
                    else
                    {
                        if((this.cboPaperSize.SelectedIndex == ModuleScan.PSIZE_A3) || 
                            (this.cboPaperSize.SelectedIndex == ModuleScan.PSIZE_B4) || 
                            (this.cboPaperSize.SelectedIndex == ModuleScan.PSIZE_DOUBLELETTER))
                        {
                            this.cboPaperSize.SelectedIndex = ModuleScan.PSIZE_A4;
                        }
                        this.txtCustomPaperWidth.Enabled = false;
                        this.txtCustomPaperLength.Enabled = false;
                    }
                    this.cboPaperSize.Enabled = true;
                }
                else
                {
                    this.cboPaperSize.SelectedIndex = ModuleScan.PSIZE_INDEX_CUSTOM;
                    this.cboPaperSize.Enabled = false;
                    this.txtCustomPaperWidth.Enabled = false;
                    this.txtCustomPaperLength.Enabled = false;
                }
                this.cboPixelType.SelectedIndex = ModuleScan.PIXEL_RGB;
                this.cboPixelType.Enabled = false;
                this.txtRegionLeft.Text = "0";
                this.txtRegionLeft.Enabled = false;
                this.txtRegionTop.Text = "0";
                this.txtRegionTop.Enabled = false;
                this.txtRegionWidth.Text = "0";
                this.txtRegionWidth.Enabled = false;
                this.txtRegionLength.Text = "0";
                this.txtRegionLength.Enabled = false;
                this.chkReverse.Checked = false;
                this.chkReverse.Enabled = false;
                this.cboRotation.SelectedIndex = ModuleScan.RT_NONE;
                this.cboRotation.Enabled = false;
                this.txtScanCount.Text = "2";
                this.txtScanCount.Enabled = false;
                this.cboSEE.Enabled = false;
                this.txtSkipBlackPage.Text = "0";
                this.txtSkipBlackPage.Enabled = false;
                this.txtSkipWhitePage.Text = "0";
                this.txtSkipWhitePage.Enabled = false;
                this.MenuItemShowSourceUI.Checked = false;
                this.txtThreshold.Enabled = false;
                this.chkUndefinedScanning.Checked = true;
                this.chkUndefinedScanning.Enabled = false;
                this.cboFilter.SelectedIndex = ModuleScan.FILTER_GREEN;
                this.cboFilter.Enabled = false;
                this.txtFilterSaturationSensitivity.Text = "50";
                this.txtFilterSaturationSensitivity.Enabled = false;
                this.cboJobControl.SelectedIndex = 0;
                this.cboJobControl.Enabled = false;
                this.txtHighlight.Text = "230";
                this.txtHighlight.Enabled = false;
                this.txtShadow.Text = "10";
                this.txtShadow.Enabled = false;
                this.cboOverScan.SelectedIndex = 0;
                this.cboOverScan.Enabled = false;
                this.cboBlankPageNotice.SelectedIndex = 0;
                this.cboBlankPageNotice.Enabled = false;
                this.chkHwCompression.Checked = false;
                this.chkHwCompression.Enabled = false;
            }
            else
            {
                if(this.cboPaperSupply.SelectedIndex == ModuleScan.FLATBED)
                    this.txtScanCount.Enabled = false;
                else
                    this.txtScanCount.Enabled = true;
                this.cboScanMode.Enabled = true;
                this.chkScanContinue.Enabled = true;
                this.chkAutoBorderDetection.Enabled = true;
                this.cboBackgroundColor.Enabled = true;
                this.cboBinding.Enabled = true;
                this.txtBrightness.Enabled = true;
                this.txtContrast.Enabled = true;
                this.chkEndorser.Enabled = true;
                if(this.chkEndorser.Checked == true)
                {
                    this.txtEndorserCounter.Enabled = true;
                    this.txtEndorserString.Enabled = true;
                    this.txtEndorserOffset.Enabled = true;
                    this.cboEndorserDirection.Enabled = true;
                    this.cboEndorserCountStep.Enabled = true;
                    this.cboEndorserCountDirection.Enabled = true;
                    this.cboEndorserFont.Enabled = true;
                    this.chkSynchronizationDigitalEndorser.Enabled = true;
                }
                this.chkDigitalEndorser.Enabled = true;
                if(this.chkDigitalEndorser.Checked == true)
                {
                    this.txtDigitalEndorserCounter.Enabled = true;
                    this.txtDigitalEndorserString.Enabled = true;
                    this.txtDigitalEndorserXOffset.Enabled = true;
                    this.txtDigitalEndorserYOffset.Enabled = true;
                    this.cboDigitalEndorserCountStep.Enabled = true;
                    this.cboDigitalEndorserCountDirection.Enabled = true;
                }
                this.cboGamma.Enabled = true;
                if(this.cboGamma.SelectedIndex == ModuleScan.GAMMA_CUSTOM)
                {
                    this.txtCustomGamma.Enabled = true;
                }
                else
                {
                    this.txtCustomGamma.Enabled = false;
                }
                if(this.cboGamma.SelectedIndex == ModuleScan.GAMMA_PATTERN_FILE)
                {
                    this.txtGammaFile.Enabled = true;
                }
                else
                {
                    this.txtGammaFile.Enabled = false;
                }
                this.chkLongPage.Enabled = true;
                this.cboMultiFeed.Enabled = true;
                this.cboOrientation.Enabled = true;
                if(this.cboPixelType.SelectedIndex == ModuleScan.PIXEL_GRAYSCALE)
                {
                    this.cboOutline.Enabled = false;
                }
                else
                {
                    this.cboOutline.Enabled = true;
                }
                this.cboPaperSize.Enabled = true;
                if(this.cboPaperSize.SelectedIndex == ModuleScan.PSIZE_INDEX_CUSTOM)
                {
                    this.txtCustomPaperWidth.Enabled = true;
                    this.txtCustomPaperLength.Enabled = true;
                }
                else
                {
                    this.txtCustomPaperWidth.Enabled = false;
                    this.txtCustomPaperLength.Enabled = false;
                }
                this.cboPixelType.Enabled = true;
                this.txtRegionLeft.Enabled = true;
                this.txtRegionTop.Enabled = true;
                this.txtRegionWidth.Enabled = true;
                this.txtRegionLength.Enabled = true;
                this.chkReverse.Enabled = true;
                this.cboRotation.Enabled = true;
                this.txtSkipBlackPage.Enabled = true;
                this.txtSkipWhitePage.Enabled = true;
                this.chkUndefinedScanning.Enabled = true;
                this.cboFilter.Enabled = true;
                this.txtFilterSaturationSensitivity.Enabled = true;
                this.cboJobControl.Enabled = true;
                if(this.cboPixelType.SelectedIndex == ModuleScan.PIXEL_BLACK_WHITE)
                {
                    this.txtHighlight.Enabled = false;
                    this.txtShadow.Enabled = false;
                }
                else
                {
                    this.txtHighlight.Enabled = true;
                    this.txtShadow.Enabled = true;
                }
                this.cboOverScan.Enabled = true;
                this.cboBackground.Enabled = true;
                this.chkAutomaticSenseMedium.Enabled = true;
                this.cboBackgroundSmoothing.Enabled = true;
                this.chkAutoBright.Enabled = true;
                this.txtBlankPageSkip.Enabled = true;
                this.cboJobControlMode.Enabled = true;
                this.txtDTCSensitivity.Enabled = true;
                this.txtBackgroundThreshold.Enabled = true;
                this.txtCharacterThickness.Enabled = true;
                this.txtSDTCSensitivity.Enabled = true;
                this.txtNoiseRejection.Enabled = true;
                this.txtADTCThreshold.Enabled = true;
                this.txtFadingCompensation.Enabled = true;
                this.cboSharpness.Enabled = true;
                this.cboPunchHoleRemoval.Enabled = true;
                this.chksRGB.Enabled = true;
                this.cboPatternRemoval.Enabled = true;
                this.chkVerticalLineReduction.Enabled = true;
                this.chkAIQCNotice.Enabled = true;
                this.txtBackgroundSmoothness.Enabled = true;
                this.cboCropPriority.Enabled = true;
                this.cboDeskew.Enabled = true;
                this.txtCropMarginSize.Enabled = true;
                this.txtMultiFeedModeChangeSize.Enabled = true;

                this.chkBarcodeDetection.Enabled = true;
                if(this.chkBarcodeDetection.Checked == true)
                {
                    this.cboBarcodeDirection.Enabled = true;
                    this.txtBarcodeRegionLeft.Enabled = true;
                    this.txtBarcodeRegionTop.Enabled = true;
                    this.txtBarcodeRegionWidth.Enabled = true;
                    this.txtBarcodeRegionLength.Enabled = true;
                    this.chkEAN8.Enabled = true;
                    this.chkEAN13.Enabled = true;
                    this.chkCode3of9.Enabled = true;
                    this.chkCode128.Enabled = true;
                    this.chkITF.Enabled = true;
                    this.chkUPCA.Enabled = true;
                    this.chkCodabar.Enabled = true;
                    this.chkPDF417.Enabled = true;
                    this.chkQRCode.Enabled = true;
                    this.chkDataMatrix.Enabled = true;
                    this.txtBarcodeMaxSearchPriorities.Enabled = true;
                }

                this.chkPatchCodeDetection.Enabled = true;
                this.cboPatchCodeDirection.Enabled = true;
                this.chkPatch1.Enabled = true;
                this.chkPatch2.Enabled = true;
                this.chkPatch3.Enabled = true;
                this.chkPatch4.Enabled = true;
                this.chkPatch6.Enabled = true;
                this.chkPatchT.Enabled = true;

                this.cboEdgeFiller.Enabled = true;
                this.chkEdgeRepair.Enabled = true;
            }
            if(this.cboPaperSupply.SelectedIndex >= 8 && this.cboPaperSupply.SelectedIndex <= 47)
            {
                this.chkEndorser.Checked = false;
                this.chkEndorser.Enabled = false;
                this.txtEndorserCounter.Enabled = false;
                this.txtEndorserString.Enabled = false;
                this.txtEndorserOffset.Enabled = false;
                this.cboEndorserDirection.Enabled = false;
                this.cboEndorserCountStep.Enabled = false;
                this.cboEndorserCountDirection.Enabled = false;
                this.cboEndorserFont.Enabled = false;
                this.chkSynchronizationDigitalEndorser.Enabled = false;
                this.chkAutoBorderDetection.Checked = false;
                this.chkAutoBorderDetection.Enabled = false;
                this.chkAIQCNotice.Enabled = false;
                this.cboCropPriority.Enabled = false;
                this.cboOverScan.SelectedIndex = 0;
                this.cboOverScan.Enabled = false;
                this.txtCropMarginSize.Enabled = false;
                this.cboOrientation.SelectedIndex = ModuleScan.PORTRAIT;
                this.cboOrientation.Enabled = false;
                this.cboBackgroundColor.SelectedIndex = 0;
                this.cboBackgroundColor.Enabled = false;
                this.cboGamma.SelectedIndex = ModuleScan.GAMMA_CUSTOM;
                this.cboGamma.Enabled = false;
                this.txtCustomGamma.Enabled = false;
                this.chkLongPage.Checked = false;
                this.chkLongPage.Enabled = false;
                this.txtRegionLeft.Text = "0";
                this.txtRegionLeft.Enabled = false;
                this.txtRegionTop.Text = "0";
                this.txtRegionTop.Enabled = false;
                this.txtRegionWidth.Text = "0";
                this.txtRegionWidth.Enabled = false;
                this.txtRegionLength.Text = "0";
                this.txtRegionLength.Enabled = false;
                this.chkUndefinedScanning.Checked = false;
                this.chkUndefinedScanning.Enabled = false;
                this.chkAutoBright.Enabled = false;
                this.chksRGB.Enabled = false;
                this.chkAutomaticSenseMedium.Enabled = false;
                this.cboPunchHoleRemoval.Enabled = false;
                this.chkEdgeRepair.Enabled = false;
                if(this.cboPaperSupply.SelectedIndex == 29 || this.cboPaperSupply.SelectedIndex ==47)
                {
                    this.cboPaperSize.SelectedIndex = ModuleScan.PSIZE_INDEX_CUSTOM;
                    this.cboPaperSize.Enabled = false;
                    this.txtCustomPaperLength.Enabled = true;
                    this.txtCustomPaperWidth.Enabled = true;
                }
                else 
                {
                    this.cboPaperSize.SelectedIndex = ModuleScan.PSIZE_A4;
                    this.cboPaperSize.Enabled = false;
                    this.txtCustomPaperLength.Enabled = false;
                    this.txtCustomPaperWidth.Enabled = false;
                }

            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The "Indicator" menu was chosen
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void MenuItemIndicator_Click(object sender, System.EventArgs e)
        {
            if((this.MenuItemIndicator.Checked == true) && 
                (this.MenuItemShowSourceUI.Checked == false))
            {
                this.MenuItemIndicator.Checked = false;
            }
            else
            {
                this.MenuItemIndicator.Checked = true;
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "Highlight" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtHighlight_TextChanged(object sender, System.EventArgs e)
        {
            int countHighlight;
            int countShadow;

            //An initial value is set to 230
            if( this.txtHighlight.Text.Length == 0)
            {
                this.txtHighlight.Text = "230";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtHighlight.Text) == true)
            {
                try
                {

                    countHighlight = System.Int32.Parse(this.txtHighlight.Text);
                }
                catch (System.Exception)
                {
                    countHighlight = 1;
                }
            }
            else
            {
                countHighlight = 1;
            }

            if(new Regex(@"^-?\d+$").IsMatch(this.txtShadow.Text) == true)
            {
                try
                {
                    countShadow = System.Int32.Parse(this.txtShadow.Text);
                }
                catch (System.Exception)
                {
                    countShadow = 0;
                }
            }
            else
            {
                countShadow = 0;
            }
            
            if(countHighlight > 255)
            {
                this.txtHighlight.Text = "255";
            }
            else if(countHighlight < 1)
            {
                this.txtHighlight.Text = "1";
            }
            else if(countHighlight <= countShadow)
            {
                this.txtHighlight.Text = Convert.ToString(countShadow + 1);
            }
            else 
            {
                this.txtHighlight.Text = countHighlight.ToString();
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : The state of a "Shadow" input value was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtShadow_TextChanged(object sender, System.EventArgs e)
        {
            int countHighlight;
            int countShadow;

            //An initial value is set to 10
            if(txtShadow.Text.Length == 0)
            {
                this.txtShadow.Text = "10";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtHighlight.Text) == true)
            {
                try
                {

                    countHighlight = System.Int32.Parse(this.txtHighlight.Text);
                }
                catch (System.Exception)
                {
                    countHighlight = 1;
                }
            }
            else
            {
                countHighlight = 1;
            }
            

            if(new Regex(@"^-?\d+$").IsMatch(this.txtShadow.Text) == true)
            {
                try
                {
                    countShadow = System.Int32.Parse(this.txtShadow.Text);
                }
                catch (System.Exception)
                {
                    countShadow = 0;
                }
            }
            else
            {
                countShadow = 0;
            }

            if(countShadow > 254)
            {
                this.txtShadow.Text = "254";
            }
            else if(countShadow < 0)
            {
                this.txtShadow.Text = "0";
            }
            else if(countShadow >= countHighlight)
            {
                if(countHighlight - 1 == -1)
                {
                    this.txtShadow.Text = "0";
                }
                else
                {
                    this.txtShadow.Text = Convert.ToString(countHighlight - 1);
                }
            }
            else
            {
                this.txtShadow.Text = countShadow.ToString();
            }
        }

        //----------------------------------------------------------------------------
        //  Function    : Selection of a "Unit" list box was changed
        //  Return code : Nothing
        //----------------------------------------------------------------------------
        private void cboUnit_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            string strUnit;

            UpdateUnit();
            ModuleScan.PreviousUnit = this.cboUnit.SelectedIndex;
            if(this.cboUnit.SelectedIndex == ModuleScan.UNIT_INCHES)
            {
                strUnit = "inch";
            }
            else if(this.cboUnit.SelectedIndex == ModuleScan.UNIT_CENTIMETERS)
            {
                strUnit = "cm";
            }
            else
            {
                strUnit = "pixel";
            }
            this.label22.Text = strUnit;
            this.label23.Text = strUnit;
            this.label26.Text = strUnit;
            this.label27.Text = strUnit;
            this.label29.Text = strUnit;
            this.label31.Text = strUnit;
            this.label58.Text = strUnit;
            this.label82.Text = strUnit;
            this.label83.Text = strUnit;
            this.label86.Text = strUnit;
            this.label87.Text = strUnit;
            this.label107.Text = strUnit;
            this.label111.Text = strUnit;
            this.label114.Text = strUnit;
            this.label115.Text = strUnit;
            this.label145.Text = strUnit;
            this.label150.Text = strUnit;
            this.label167.Text = strUnit;
        }

        //----------------------------------------------------------------------------
        //   Function     : Rounds off numerical values.
        //   Argument     : Target numerical value
        //                : Valid digits
        //   Return value : Rounded-off numerical value
        //----------------------------------------------------------------------------
        private double RoundOff(double dValue, int iFigure)
        {
            double dCoef = System.Math.Pow(10, iFigure);

            if(dValue > 0)
            {
                return System.Math.Floor((dValue * dCoef) + 0.5) / dCoef;
            }
            else
            {
                return System.Math.Ceiling((dValue * dCoef) - 0.5) / dCoef;
            }
         }

        //----------------------------------------------------------------------------
        //   Function     : Returns a resolution value.
        //   Argument     : Selected resolution
        //   Return value : Resolution value (dpi)
        //----------------------------------------------------------------------------
        private int ResolutionValue(int reso)
        {
            switch (reso)
            {
                case ModuleScan.RS_200:
                    return 200;
                case ModuleScan.RS_240:
                    return 240;
                case ModuleScan.RS_300:
                    return 300;
                case ModuleScan.RS_400:
                    return 400;
                case ModuleScan.RS_500:
                    return 500;
                case ModuleScan.RS_600:
                    return 600;
                case ModuleScan.RS_700:
                    return 700;
                case ModuleScan.RS_800:
                    return 800;
                case 8:
                    return 1200;
                default:
                    if (txtCustomResolution.Text.Length == 0)
                    {
                        return 300;
                    }
                    else
                    {
                        return System.Int32.Parse(txtCustomResolution.Text);
                    }
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : Unit conversion
        //   Argument    : Nothing
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void UpdateUnit()
        {
            double dValue;
            int iRreso;
            int iFigure = 0;

            if(ModuleScan.bInitialFileRead == true)
            {
                iRreso = ResolutionValue(this.cboResolution.SelectedIndex);

                if(this.cboUnit.SelectedIndex == ModuleScan.UNIT_INCHES)
                {
                    dValue = 1;
                }
                else if(this.cboUnit.SelectedIndex == ModuleScan.UNIT_CENTIMETERS)
                {
                    iFigure = 1;
                    dValue = ModuleScan.INCH254;
                }
                else
                {
                    iFigure = 0;
                    dValue = iRreso;
                }

                if((cboPaperSupply.SelectedIndex != ModuleScan.ADF_A3CS) &&
                    (cboPaperSupply.SelectedIndex != ModuleScan.ADF_DLCS) &&
                    (cboPaperSupply.SelectedIndex != ModuleScan.ADF_B4CS))
                {
                    switch(cboPaperSize.SelectedIndex)
                    {
                        case ModuleScan.PSIZE_A3:
                            this.txtCustomPaperWidth.Text = Convert.ToString(11.693 * dValue);
                            this.txtCustomPaperLength.Text =Convert.ToString(16.536 * dValue);
                            break;
                        case ModuleScan.PSIZE_A4:
                            this.txtCustomPaperWidth.Text = Convert.ToString(8.268 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(11.693 * dValue);
                            break;
                        case ModuleScan.PSIZE_A5:
                            this.txtCustomPaperWidth.Text = Convert.ToString(5.827 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(8.268 * dValue);
                            break;
                        case ModuleScan.PSIZE_A6:
                            this.txtCustomPaperWidth.Text = Convert.ToString(4.134 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(5.827 * dValue);
                            break;
                        case ModuleScan.PSIZE_B4:
                            this.txtCustomPaperWidth.Text = Convert.ToString(10.119 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(14.331 * dValue);
                            break;
                        case ModuleScan.PSIZE_B5:
                            this.txtCustomPaperWidth.Text = Convert.ToString(7.166 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(10.119 * dValue);
                            break;
                        case ModuleScan.PSIZE_B6:
                            this.txtCustomPaperWidth.Text = Convert.ToString(5.04 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(7.166 * dValue);
                            break;
                        case ModuleScan.PSIZE_LETTER:
                            this.txtCustomPaperWidth.Text = Convert.ToString(8.5 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(11.0 * dValue);
                            break;
                        case ModuleScan.PSIZE_LEGAL:
                            this.txtCustomPaperWidth.Text = Convert.ToString(8.5 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(14.0 * dValue);
                            break;
                        case ModuleScan.PSIZE_EXECUTIVE:
                            this.txtCustomPaperWidth.Text = Convert.ToString(7.25 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(10.5 * dValue);
                            break;
                        case ModuleScan.PSIZE_DOUBLELETTER:
                            this.txtCustomPaperWidth.Text = Convert.ToString(11.0 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(17.0 * dValue);
                            break;
                        case ModuleScan.PSIZE_POSTCARD:
                            this.txtCustomPaperWidth.Text = Convert.ToString(3.938 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(5.866 * dValue);
                            break;
                        case ModuleScan.PSIZE_PHOTO:
                            this.txtCustomPaperWidth.Text = Convert.ToString(3.504 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(5.0 * dValue);
                            break;
                        case ModuleScan.PSIZE_CARD:
                            this.txtCustomPaperWidth.Text = Convert.ToString(2.166 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(3.583 * dValue);
                            break;
                        case ModuleScan.PSIZE_C4:
                            this.txtCustomPaperWidth.Text = Convert.ToString(9.016 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(12.756 * dValue);
                            break;
                        case ModuleScan.PSIZE_C5:
                            this.txtCustomPaperWidth.Text = Convert.ToString(6.378 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(9.016 * dValue);
                            break;
                        case ModuleScan.PSIZE_C6:
                            this.txtCustomPaperWidth.Text = Convert.ToString(4.489 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(6.378 * dValue);
                            break;
                        case ModuleScan.PSIZE_ISO_B4:
                            this.txtCustomPaperWidth.Text = Convert.ToString(9.843 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(13.898 * dValue);
                            break;
                        case ModuleScan.PSIZE_ISO_B5:
                            this.txtCustomPaperWidth.Text = Convert.ToString(6.929 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(9.843 * dValue);
                            break;
                        case ModuleScan.PSIZE_ISO_B6:
                            this.txtCustomPaperWidth.Text = Convert.ToString(4.921 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(6.929 * dValue);
                            break;
                        default:
                            this.txtCustomPaperWidth.Text = ConvertUnit(double.Parse(txtCustomPaperWidth.Text), iRreso).ToString();
                            this.txtCustomPaperLength.Text = ConvertUnit(double.Parse(txtCustomPaperLength.Text), iRreso).ToString();
                            break;
                    }
                }
                else
                {
                    switch(this.cboPaperSupply.SelectedIndex)
                    {
                        case ModuleScan.ADF_A3CS:
                            this.txtCustomPaperWidth.Text = Convert.ToString(11.693 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(16.536 * dValue);
                            break;
                        case ModuleScan.ADF_B4CS:
                            this.txtCustomPaperWidth.Text = Convert.ToString(10.119 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(14.331 * dValue);
                            break;
                        case ModuleScan.ADF_DLCS:
                            this.txtCustomPaperWidth.Text = Convert.ToString(11.0 * dValue);
                            this.txtCustomPaperLength.Text = Convert.ToString(17.0 * dValue);
                            break;
                        default:
                            break;
                    }
                }

                if((cboPaperSupply.SelectedIndex != ModuleScan.ADF_A3CS) &&
                    (cboPaperSupply.SelectedIndex != ModuleScan.ADF_DLCS) &&
                    (cboPaperSupply.SelectedIndex != ModuleScan.ADF_B4CS) &&
                    (cboPaperSupply.SelectedIndex != ModuleScan.ADF_CS))
                {
                    this.txtRegionLeft.Text = ConvertUnit(double.Parse(txtRegionLeft.Text), iRreso).ToString();
                    this.txtRegionTop.Text = ConvertUnit(double.Parse(txtRegionTop.Text), iRreso).ToString();
                    this.txtRegionWidth.Text = ConvertUnit(double.Parse(txtRegionWidth.Text), iRreso).ToString();
                    this.txtRegionLength.Text = ConvertUnit(double.Parse(txtRegionLength.Text), iRreso).ToString();
                }
                this.txtEndorserOffset.Text = ConvertUnit(double.Parse(txtEndorserOffset.Text), iRreso).ToString();
                this.txtDigitalEndorserXOffset.Text = ConvertUnit(double.Parse(txtDigitalEndorserXOffset.Text), iRreso).ToString();
                this.txtDigitalEndorserYOffset.Text = ConvertUnit(double.Parse(txtDigitalEndorserYOffset.Text), iRreso).ToString();
                this.txtBarcodeRegionLeft.Text = ConvertUnit(double.Parse(txtBarcodeRegionLeft.Text), iRreso).ToString();
                this.txtBarcodeRegionTop.Text = ConvertUnit(double.Parse(txtBarcodeRegionTop.Text), iRreso).ToString();
                this.txtBarcodeRegionWidth.Text = ConvertUnit(double.Parse(txtBarcodeRegionWidth.Text), iRreso).ToString();
                this.txtBarcodeRegionLength.Text = ConvertUnit(double.Parse(txtBarcodeRegionLength.Text), iRreso).ToString();
                this.txtEdgeFillerTop.Text = ConvertUnit(double.Parse(txtEdgeFillerTop.Text), iRreso).ToString();
                this.txtEdgeFillerBottom.Text = ConvertUnit(double.Parse(txtEdgeFillerBottom.Text), iRreso).ToString();
                this.txtEdgeFillerLeft.Text = ConvertUnit(double.Parse(txtEdgeFillerLeft.Text), iRreso).ToString();
                this.txtEdgeFillerRight.Text = ConvertUnit(double.Parse(txtEdgeFillerRight.Text), iRreso).ToString();
                this.txtMultiFeedModeChangeSize.Text = ConvertUnit(double.Parse(txtMultiFeedModeChangeSize.Text), iRreso).ToString();
                if(cboUnit.SelectedIndex != ModuleScan.UNIT_INCHES)
                {
                    this.txtCustomPaperWidth.Text = RoundOff(double.Parse(txtCustomPaperWidth.Text), iFigure).ToString();
                    this.txtCustomPaperLength.Text = RoundOff(double.Parse(txtCustomPaperLength.Text), iFigure).ToString();
                    this.txtRegionLeft.Text = RoundOff(double.Parse(txtRegionLeft.Text), iFigure).ToString();
                    this.txtRegionTop.Text = RoundOff(double.Parse(txtRegionTop.Text), iFigure).ToString();
                    this.txtRegionWidth.Text = RoundOff(double.Parse(txtRegionWidth.Text), iFigure).ToString();
                    this.txtRegionLength.Text = RoundOff(double.Parse(txtRegionLength.Text), iFigure).ToString();
                    this.txtEndorserOffset.Text = RoundOff(double.Parse(txtEndorserOffset.Text), iFigure).ToString();
                    this.txtDigitalEndorserXOffset.Text = RoundOff(double.Parse(txtDigitalEndorserXOffset.Text), iFigure).ToString();
                    this.txtDigitalEndorserYOffset.Text = RoundOff(double.Parse(txtDigitalEndorserYOffset.Text), iFigure).ToString();
                    this.txtBarcodeRegionLeft.Text = RoundOff(double.Parse(txtBarcodeRegionLeft.Text), iFigure).ToString();
                    this.txtBarcodeRegionTop.Text = RoundOff(double.Parse(txtBarcodeRegionTop.Text), iFigure).ToString();
                    this.txtBarcodeRegionWidth.Text = RoundOff(double.Parse(txtBarcodeRegionWidth.Text), iFigure).ToString();
                    this.txtBarcodeRegionLength.Text = RoundOff(double.Parse(txtBarcodeRegionLength.Text), iFigure).ToString();
                    this.txtEdgeFillerTop.Text = RoundOff(double.Parse(txtEdgeFillerTop.Text), iFigure).ToString();
                    this.txtEdgeFillerBottom.Text = RoundOff(double.Parse(txtEdgeFillerBottom.Text), iFigure).ToString();
                    this.txtEdgeFillerLeft.Text = RoundOff(double.Parse(txtEdgeFillerLeft.Text), iFigure).ToString();
                    this.txtEdgeFillerRight.Text = RoundOff(double.Parse(txtEdgeFillerRight.Text), iFigure).ToString();
                    this.txtMultiFeedModeChangeSize.Text = RoundOff(double.Parse(txtMultiFeedModeChangeSize.Text), iFigure).ToString();
                }
            }
        }

        //----------------------------------------------------------------------------
        //   Function     : Converts into another unit.
        //   Argument     : Value to be converted into another unit
        //                  Resolution (dpi)
        //   Return value : Result of unit conversion
        //----------------------------------------------------------------------------
        private double ConvertUnit(double dValue, int iReso)
        {
            if(this.cboUnit.SelectedIndex == ModuleScan.UNIT_INCHES)
            {
                if(ModuleScan.PreviousUnit == ModuleScan.UNIT_CENTIMETERS)
                {
                    return dValue / ModuleScan.INCH254;
                }
                else if(ModuleScan.PreviousUnit == ModuleScan.UNIT_PIXELS)
                {
                    return dValue / iReso;
                }
            }
            else if(this.cboUnit.SelectedIndex == ModuleScan.UNIT_CENTIMETERS)
            {
                if(ModuleScan.PreviousUnit == ModuleScan.UNIT_INCHES)
                {
                    return dValue * ModuleScan.INCH254;
                }
                else if(ModuleScan.PreviousUnit == ModuleScan.UNIT_PIXELS)
                {
                    return dValue / iReso * ModuleScan.INCH254;
                }
            }
            else if(this.cboUnit.SelectedIndex == ModuleScan.UNIT_PIXELS)
            {
                if(ModuleScan.PreviousUnit == ModuleScan.UNIT_INCHES)
                {
                    return dValue * iReso;
                }
                else if(ModuleScan.PreviousUnit == ModuleScan.UNIT_CENTIMETERS)
                {
                    return dValue * iReso / ModuleScan.INCH254;
                }
                if(ModuleScan.PreviousReso != System.Int32.Parse(this.txtCustomResolution.Text))
                {
                    return dValue * iReso / ModuleScan.PreviousReso;
                }
            }
            return dValue;
        }

        [STAThread]
        static void Main() 
        {
            try
            {
                Application.Run(new FormScan());
            }
            catch (System.Exception e)
            {
                MessageBox.Show(e.Message.ToString(), "fiScanTest");
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : ScanToFile Event
        //   Argument    : Scanning image count
        //                 Scanning image file name
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void axFiScn1_ScanToFile(object sender, AxFiScnLib._DFiScnEvents_ScanToFileEvent e)
        {
            if (this.chkAIQCNotice.CheckState == CheckState.Checked)
            {
                String[] aiqcResult = { e.scanCount.ToString(), "", "", "", "", "", "", "", "", aiqcResultHashTable[axFiScn1.AIQCResult].ToString(),"" };
                resultList.Add(aiqcResult);
            }
            if (axFiScn1.BlankPageSkip != 0 && axFiScn1.BlankPageNotice == 1) 
            {
                String[] blankPageResult = { e.scanCount.ToString(), "", "", "", "", "", "", "", "", "",  blankPageResultHashTable[axFiScn1.BlankPageResult].ToString()};
                resultList.Add(blankPageResult);
            }

            if (ModuleScan.bCancelScan) 
            {
                axFiScn1.CancelScan();
                ModuleScan.bCancelScan = false;
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : Menu click event to notify whether or not a document is loaded on the ADF
        //   Argument    : Nothing
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void menuItemFeederLoaded_Click(object sender, System.EventArgs e)
        {
            int ErrorCode;

            // Process of notifying whether or not a document is loaded on the ADF
            if(axFiScn1.FeederLoaded(this.Handle.ToInt32()))
            {
                MessageBox.Show("The scanner is available.", "fiScanTest");
            }
            else
            {
                ErrorCode = axFiScn1.ErrorCode;
                MessageBox.Show("The scanner is unavailable, or an error ocurred.\n\terror code :" + HexString(ErrorCode), "fiScanTest");
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "BarcodeDetection" check box was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void chkBarcodeDetection_CheckedChanged(object sender, System.EventArgs e)
        {
            if(this.chkBarcodeDetection.CheckState == CheckState.Checked)
            {
                this.cboBarcodeDirection.Enabled = true;
                this.txtBarcodeRegionLeft.Enabled = true;
                this.txtBarcodeRegionTop.Enabled = true;
                this.txtBarcodeRegionWidth.Enabled = true;
                this.txtBarcodeRegionLength.Enabled = true;
                this.chkEAN8.Enabled = true;
                this.chkEAN13.Enabled = true;
                this.chkCode3of9.Enabled = true;
                this.chkCode128.Enabled = true;
                this.chkITF.Enabled = true;
                this.chkUPCA.Enabled = true;
                this.chkCodabar.Enabled = true;
                this.chkPDF417.Enabled = true;
                this.chkQRCode.Enabled = true;
                this.chkDataMatrix.Enabled = true;
                this.txtBarcodeMaxSearchPriorities.Enabled = true;
            }
            else
            {
                this.cboBarcodeDirection.Enabled = false;
                this.txtBarcodeRegionLeft.Enabled = false;
                this.txtBarcodeRegionTop.Enabled = false;
                this.txtBarcodeRegionWidth.Enabled = false;
                this.txtBarcodeRegionLength.Enabled = false;
                this.chkEAN8.Enabled = false;
                this.chkEAN13.Enabled = false;
                this.chkCode3of9.Enabled = false;
                this.chkCode128.Enabled = false;
                this.chkITF.Enabled = false;
                this.chkUPCA.Enabled = false;
                this.chkCodabar.Enabled = false;
                this.chkPDF417.Enabled = false;
                this.chkQRCode.Enabled = false;
                this.chkDataMatrix.Enabled = false;
                this.txtBarcodeMaxSearchPriorities.Enabled = false;
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "BarcodeRegionLeft" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtBarcodeRegionLeft_TextChanged(object sender, System.EventArgs e)
        {
            double count;
            //An initial value is set to 0
            if(this.txtBarcodeRegionLeft.Text.Length == 0)
            {
                this.txtBarcodeRegionLeft.Text = "0";
                return;
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtBarcodeRegionLeft.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtBarcodeRegionLeft.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }            
            
            if(count < 0)
            {
                this.txtBarcodeRegionLeft.Text = "0";
            }
            else
            {
                this.txtBarcodeRegionLeft.Text = changeDigitByUnit(count);
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "BarcodeRegionTop" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtBarcodeRegionTop_TextChanged(object sender, System.EventArgs e)
        {
            double count;
            //An initial value is set to 0
            if(this.txtBarcodeRegionTop.Text.Length == 0)
            {
                this.txtBarcodeRegionTop.Text = "0";
                return;
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtBarcodeRegionTop.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtBarcodeRegionTop.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }            
            
            if(count < 0)
            {
                this.txtBarcodeRegionTop.Text = "0";
            }
            else
            {
                this.txtBarcodeRegionTop.Text = changeDigitByUnit(count);
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "BarcodeRegionWidth" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtBarcodeRegionWidth_TextChanged(object sender, System.EventArgs e)
        {
            double count;
            //An initial value is set to 0
            if(this.txtBarcodeRegionWidth.Text.Length == 0)
            {
                this.txtBarcodeRegionWidth.Text = "0";
                return;
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtBarcodeRegionWidth.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtBarcodeRegionWidth.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
                
            if(count < 0)
            {
                this.txtBarcodeRegionWidth.Text = "0";
            }
            else
            {
                this.txtBarcodeRegionWidth.Text = changeDigitByUnit(count);
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "BarcodeRegionLength" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtBarcodeRegionLength_TextChanged(object sender, System.EventArgs e)
        {
            double count;
            //An initial value is set to 0
            if(this.txtBarcodeRegionLength.Text.Length == 0)
            {
                this.txtBarcodeRegionLength.Text = "0";
                return;
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtBarcodeRegionLength.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtBarcodeRegionLength.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
                
            if(count < 0)
            {
                this.txtBarcodeRegionLength.Text = "0";
            }
            else
            {
                this.txtBarcodeRegionLength.Text = changeDigitByUnit(count);
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : Selection of a "EdgeFiller" combo box was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void cboEdgeFiller_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            if(this.cboEdgeFiller.SelectedIndex != ModuleScan.EF_OFF)
            {
                this.txtEdgeFillerTop.Enabled = true;
                this.txtEdgeFillerBottom.Enabled = true;
                this.txtEdgeFillerLeft.Enabled = true;
                this.txtEdgeFillerRight.Enabled = true;
            }
            else 
            {
                this.txtEdgeFillerTop.Enabled = false;
                this.txtEdgeFillerBottom.Enabled = false;
                this.txtEdgeFillerLeft.Enabled = false;
                this.txtEdgeFillerRight.Enabled = false;
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "EdgeFillerTop" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtEdgeFillerTop_TextChanged(object sender, System.EventArgs e)
        {
            double count;
            //An initial value is set to 0
            if(this.txtEdgeFillerTop.Text.Length == 0)
            {
                this.txtEdgeFillerTop.Text = "0";
                return;
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtEdgeFillerTop.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtEdgeFillerTop.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
                
            if(count < 0)
            {
                this.txtEdgeFillerTop.Text = "0";
            }
            else
            {
                this.txtEdgeFillerTop.Text = changeDigitByUnit(count);
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "EdgeFillerBottom" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtEdgeFillerBottom_TextChanged(object sender, System.EventArgs e)
        {
            double count;
            //An initial value is set to 0
            if(this.txtEdgeFillerBottom.Text.Length == 0)
            {
                this.txtEdgeFillerBottom.Text = "0";
                return;
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtEdgeFillerBottom.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtEdgeFillerBottom.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
                
            if(count < 0)
            {
                this.txtEdgeFillerBottom.Text = "0";
            }
            else
            {
                this.txtEdgeFillerBottom.Text = changeDigitByUnit(count);
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "EdgeFillerLeft" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtEdgeFillerLeft_TextChanged(object sender, System.EventArgs e)
        {
            double count;
            //An initial value is set to 0
            if(this.txtEdgeFillerLeft.Text.Length == 0)
            {
                this.txtEdgeFillerLeft.Text = "0";
                return;
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtEdgeFillerLeft.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtEdgeFillerLeft.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
                
            if(count < 0)
            {
                this.txtEdgeFillerLeft.Text = "0";
            }
            else
            {
                this.txtEdgeFillerLeft.Text = changeDigitByUnit(count);
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "EdgeFillerRight" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtEdgeFillerRight_TextChanged(object sender, System.EventArgs e)
        {
            double count;
            //An initial value is set to 0
            if(this.txtEdgeFillerRight.Text.Length == 0)
            {
                this.txtEdgeFillerRight.Text = "0";
                return;
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtEdgeFillerRight.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtEdgeFillerRight.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
                
            if(count < 0)
            {
                this.txtEdgeFillerRight.Text = "0";
            }
            else
            {
                this.txtEdgeFillerRight.Text = changeDigitByUnit(count);
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "BlankPageSkip" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtBlankPageSkip_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 0
            if(this.txtBlankPageSkip.Text.Length == 0)
            {
                this.txtBlankPageSkip.Text = "0";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtBlankPageSkip.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtBlankPageSkip.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
        
            if(count > 11)
            {
                this.txtBlankPageSkip.Text = "11";
            }
            else if(count < 0)
            {
                this.txtBlankPageSkip.Text = "0";
            }
            else
            {
                this.txtBlankPageSkip.Text = count.ToString();
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : The "CheckADF" button was pushed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void ButtonCheckADF_Click(object sender, System.EventArgs e)
        {
            FormFeederLoaded frmFeederLoaded = new FormFeederLoaded();
            frmFeederLoaded.StartPosition = FormStartPosition.Manual;
            frmFeederLoaded.Top = this.Top;
            frmFeederLoaded.Left = this.Left + this.Width;
            frmFeederLoaded.Owner = this;
            if (frmFeederLoaded.ShowDialog() == System.Windows.Forms.DialogResult.OK) 
            {
                this.StartScan();
            }
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "DTCSensitivity" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtDTCSensitivity_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 50
            if(this.txtDTCSensitivity.Text.Length == 0)
            {
                this.txtDTCSensitivity.Text = "50";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtDTCSensitivity.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtDTCSensitivity.Text);
                }
                catch (System.Exception)
                {
                    count = 50;
                }
            }
            else
            {
                count = 50;
            }
        
            if(count > 100)
            {
                this.txtDTCSensitivity.Text = "100";
            }
            else if(count < 0)
            {
                this.txtDTCSensitivity.Text = "0";
            }
            else
            {
                this.txtDTCSensitivity.Text = count.ToString();
            }         
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "BackgroundThreshold" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtBackgroundThreshold_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 50
            if(this.txtBackgroundThreshold.Text.Length == 0)
            {
                this.txtBackgroundThreshold.Text = "50";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtBackgroundThreshold.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtBackgroundThreshold.Text);
                }
                catch (System.Exception)
                {
                    count = 50;
                }
            }
            else
            {
                count = 50;
            }
        
            if(count > 100)
            {
                this.txtBackgroundThreshold.Text = "100";
            }
            else if(count < 0)
            {
                this.txtBackgroundThreshold.Text = "0";
            }
            else
            {
                this.txtBackgroundThreshold.Text = count.ToString();
            }         
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "CharacterThickness" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtCharacterThickness_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 5
            if(this.txtCharacterThickness.Text.Length == 0)
            {
                this.txtCharacterThickness.Text = "5";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtCharacterThickness.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtCharacterThickness.Text);
                }
                catch (System.Exception)
                {
                    count = 5;
                }
            }
            else
            {
                count = 5;
            }
        
            if(count > 10)
            {
                this.txtCharacterThickness.Text = "10";
            }
            else if(count < 0)
            {
                this.txtCharacterThickness.Text = "0";
            }
            else
            {
                this.txtCharacterThickness.Text = count.ToString();
            }         
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "NoiseRejection" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtNoiseRejection_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 0
            if(this.txtNoiseRejection.Text.Length == 0)
            {
                this.txtNoiseRejection.Text = "0";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtNoiseRejection.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtNoiseRejection.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
        
            if(count > 20)
            {
                this.txtNoiseRejection.Text = "20";
            }
            else if(count < 0)
            {
                this.txtNoiseRejection.Text = "0";
            }
            else
            {
                this.txtNoiseRejection.Text = count.ToString();
            }         
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "ADTCThreshold" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtADTCThreshold_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 83
            if(this.txtADTCThreshold.Text.Length == 0)
            {
                this.txtADTCThreshold.Text = "83";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtADTCThreshold.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtADTCThreshold.Text);
                }
                catch (System.Exception)
                {
                    count = 83;
                }
            }
            else
            {
                count = 83;
            }
        
            if(count > 255)
            {
                this.txtADTCThreshold.Text = "255";
            }
            else if(count < 1)
            {
                this.txtADTCThreshold.Text = "1";
            }
            else
            {
                this.txtADTCThreshold.Text = count.ToString();
            }         
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "SDTCSensitivity" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtSDTCSensitivity_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 2
            if(this.txtSDTCSensitivity.Text.Length == 0)
            {
                this.txtSDTCSensitivity.Text = "2";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtSDTCSensitivity.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtSDTCSensitivity.Text);
                }
                catch (System.Exception)
                {
                    count = 2;
                }
            }
            else
            {
                count = 2;
            }
        
            if(count > 3)
            {
                this.txtSDTCSensitivity.Text = "3";
            }
            else if(count < 1)
            {
                this.txtSDTCSensitivity.Text = "1";
            }
            else
            {
                this.txtSDTCSensitivity.Text = count.ToString();
            }         
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "FadingCompensation" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtFadingCompensation_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 0
            if(this.txtFadingCompensation.Text.Length == 0)
            {
                this.txtFadingCompensation.Text = "0";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtFadingCompensation.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtFadingCompensation.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
        
            if(count > 5)
            {
                this.txtFadingCompensation.Text = "5";
            }
            else if(count < 0)
            {
                this.txtFadingCompensation.Text = "0";
            }
            else
            {
                this.txtFadingCompensation.Text = count.ToString();
            }         
        }

        //----------------------------------------------------------------------------
        //   Function    : Detection result of Barcode is added to arrangement.
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void axFiScn1_DetectBarcode(object sender, AxFiScnLib._DFiScnEvents_DetectBarcodeEvent e)
        {
        }

        //----------------------------------------------------------------------------
        //   Function    : Detection result of PatchCode is added to arrangement. 
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void axFiScn1_DetectPatchCode(object sender, AxFiScnLib._DFiScnEvents_DetectPatchCodeEvent e)
        {
            String[] patchCode = { e.readCount.ToString(), "", "", "", "", "", "", "", patchCodeHashTable[e.patchCodeType].ToString(), "", "" };
            resultList.Add(patchCode);
        }


        //----------------------------------------------------------------------------
        //   Function    : Change number of decimals by selected unit
        //   Argument    : double
        //   Return code : string
        //----------------------------------------------------------------------------
        private string changeDigitByUnit(double dValue)
        {
            string result = "";
            if (this.cboUnit.SelectedIndex == ModuleScan.UNIT_INCHES)
            {
                result = dValue.ToString("F3");
            }
            else if (this.cboUnit.SelectedIndex == ModuleScan.UNIT_CENTIMETERS)
            {
                result = dValue.ToString("F1");
            }
            else
            {
                result = dValue.ToString("F0");
            }
            return result;
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "DigitalEndorser" check box was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void chkDigitalEndorser_CheckedChanged(object sender, System.EventArgs e)
        {
            if(this.chkDigitalEndorser.CheckState == CheckState.Checked)
            {
                this.txtDigitalEndorserCounter.Enabled = true;
                this.txtDigitalEndorserString.Enabled = true;
                this.txtDigitalEndorserXOffset.Enabled = true;
                this.txtDigitalEndorserYOffset.Enabled = true;
                this.cboDigitalEndorserCountStep.Enabled = true;
                this.cboDigitalEndorserCountDirection.Enabled = true;
            }
            else
            {
                this.txtDigitalEndorserCounter.Enabled = false;
                this.txtDigitalEndorserString.Enabled = false;
                this.txtDigitalEndorserXOffset.Enabled = false;
                this.txtDigitalEndorserYOffset.Enabled = false;
                this.cboDigitalEndorserCountStep.Enabled = false;
                this.cboDigitalEndorserCountDirection.Enabled = false;
            }        
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "DigitalEndorserXOffset" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtDigitalEndorserXOffset_TextChanged(object sender, System.EventArgs e)
        {
            double count;

            //An initial value is set to 0
            if(this.txtDigitalEndorserXOffset.Text.Length == 0)
            {
                this.txtDigitalEndorserXOffset.Text = "0";
                return;
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtDigitalEndorserXOffset.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtDigitalEndorserXOffset.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
            
            if(count < 0)
            {
                this.txtDigitalEndorserXOffset.Text = "0";
            }
            else
            {
                this.txtDigitalEndorserXOffset.Text = changeDigitByUnit(count);
            }        
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "DigitalEndorserYOffset" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtDigitalEndorserYOffset_TextChanged(object sender, System.EventArgs e)
        {
            double count;

            //An initial value is set to 0
            if(this.txtDigitalEndorserYOffset.Text.Length == 0)
            {
                this.txtDigitalEndorserYOffset.Text = "0";
                return;
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtDigitalEndorserYOffset.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtDigitalEndorserYOffset.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
            
            if(count < 0)
            {
                this.txtDigitalEndorserYOffset.Text = "0";
            }
            else
            {
                this.txtDigitalEndorserYOffset.Text = changeDigitByUnit(count);
            }          
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "DigitalEndorserCounter" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtDigitalEndorserCounter_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 0
            if(this.txtDigitalEndorserCounter.Text.Length == 0)
            {
                this.txtDigitalEndorserCounter.Text = "0";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtDigitalEndorserCounter.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtDigitalEndorserCounter.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
            
            if(count > 99999999)
            {
                this.txtDigitalEndorserCounter.Text = "99999999";
            }
            else if(count < -1)
            {
                this.txtDigitalEndorserCounter.Text = "0";
            }
            else
            {
                this.txtDigitalEndorserCounter.Text = count.ToString();
            }        
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "BarcodeMaxSearchPriorities" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtBarcodeMaxSearchPriorities_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 1
            if(this.txtBarcodeMaxSearchPriorities.Text.Length == 0)
            {
                this.txtBarcodeMaxSearchPriorities.Text = "1";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtBarcodeMaxSearchPriorities.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtBarcodeMaxSearchPriorities.Text);
                }
                catch (System.Exception)
                {
                    count = 1;
                }
            }
            else
            {
                count = 1;
            }
        
            if(count > 20)
            {
                this.txtBarcodeMaxSearchPriorities.Text = "20";
            }
            else if(count < 1)
            {
                this.txtBarcodeMaxSearchPriorities.Text = "1";
            }
            else
            {
                this.txtBarcodeMaxSearchPriorities.Text = count.ToString();
            }            
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "FilterSaturationSensitivity" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtFilterSaturationSensitivity_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 50
            if(this.txtFilterSaturationSensitivity.Text.Length == 0)
            {
                this.txtFilterSaturationSensitivity.Text = "50";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtFilterSaturationSensitivity.Text) == true)
            {
                try
                {
                    count = System.Int32.Parse(this.txtFilterSaturationSensitivity.Text);
                }
                catch (System.Exception)
                {
                    count = 50;
                }
            }
            else
            {
                count = 50;
            }
        
            if(count > 100)
            {
                this.txtFilterSaturationSensitivity.Text = "100";
            }
            else if(count < 0)
            {
                this.txtFilterSaturationSensitivity.Text = "0";
            }
            else
            {
                this.txtFilterSaturationSensitivity.Text = count.ToString();
            }         
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "BackgroundSmoothness" input value was changed
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtBackgroundSmoothness_TextChanged(object sender, System.EventArgs e)
        {
            int count;

            //An initial value is set to 5
            if(this.txtBackgroundSmoothness.Text.Length == 0)
                this.txtBackgroundSmoothness.Text = "5";
            
            //An input value is checked and an invalid value is stored within effective limits
            if(new Regex(@"^-?\d+$").IsMatch(this.txtBackgroundSmoothness.Text) == true)
            {
                try
                
                {
                    count = System.Int32.Parse(this.txtBackgroundSmoothness.Text);
                }
                catch (System.Exception)
                {
                    count = 5;
                }
            }
            else
            {
                count = 5;
            }
          
            if(count < 0)
            {
                this.txtBackgroundSmoothness.Text = "0";
            }
            else if(count > 10)
            {
                this.txtBackgroundSmoothness.Text = "10";
            }
            else
            {
                this.txtBackgroundSmoothness.Text = count.ToString();
            }    
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "CropMarginSize" input value was changed?
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtCropMarginSize_TextChanged(object sender, System.EventArgs e)
        {
            double count;

            //An initial value is set to 0
            if(this.txtCropMarginSize.Text.Length == 0)
            {
                this.txtCropMarginSize.Text = "0.0";
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtCropMarginSize.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtCropMarginSize.Text);
                }
                catch (System.Exception)
                {
                    count = 0.0;
                }
            }
            else
            {
                count = 0.0;
            }
            
            if(count > 5)
            {
                this.txtCropMarginSize.Text = "5.0";
            }
            else if(count < -5)
            {
                this.txtCropMarginSize.Text = "-5.0";
            }
            else
            {
                this.txtCropMarginSize.Text = count.ToString();
            }        
        }

        //----------------------------------------------------------------------------
        //   Function    : The state of a "MultiFeedModeChangeSize" input value was changed?
        //   Return code : Nothing
        //----------------------------------------------------------------------------
        private void txtMultiFeedModeChangeSize_TextChanged(object sender, System.EventArgs e)
        {
            double count;
            //An initial value is set to 0
            if(this.txtMultiFeedModeChangeSize.Text.Length == 0)
            {
                this.txtMultiFeedModeChangeSize.Text = "0";
                return;
            }

            //An input value is checked and an invalid value is stored within effective limits
            if (new Regex(@"^(-?\d+)([\.,]\d+)?$").IsMatch(this.txtMultiFeedModeChangeSize.Text) == true)
            {
                try
                {
                    count = double.Parse(this.txtMultiFeedModeChangeSize.Text);
                }
                catch (System.Exception)
                {
                    count = 0;
                }
            }
            else
            {
                count = 0;
            }
                
            if(count < 0)
            {
                this.txtMultiFeedModeChangeSize.Text = "0";
            }
            else
            {
                this.txtMultiFeedModeChangeSize.Text = changeDigitByUnit(count);
            }        
        }

        private void axFiScn1_DetectBarcodeDetail(object sender, AxFiScnLib._DFiScnEvents_DetectBarcodeDetailEvent e)
        {
            String count = e.barcodeCount + "/" + e.barcodeTotalCount;
            String[] barcode = { e.readCount.ToString(), count, barcodeHashTable[e.barcodeType].ToString(), e.barcodeTextLength.ToString(), e.barcodeText, e.barcodeX.ToString(), e.barcodeY.ToString(), barcodeRotationHashTable[e.barcodeRotation].ToString(), "", "", "" };
            resultList.Add(barcode);
        }

        //Function    : The event of NegotiateCapabilities
        //Return code : Nothing
        private void axFiscn1_NegotiateCapabilities(object sender, EventArgs e)
        {
            //int iReturnCode;
            //int iItemValue;
            //iReturnCode = axFiScn1.SetCapability(ICAP_PIXELTYPE, TWTY_UINT16, TWPT_BW);
            //iReturnCode = axFiScn1.GetCapability(ICAP_PIXELTYPE, MSG_GETCURRENT, TWTY_UINT16, iItemValue);
        }

    }
}
